pub struct Text {
pub value: Option<String>,
pub languages: BTreeMap<String, String>,
}Expand description
Natural-language text: a value in no particular language, and values per language.
ActivityStreams writes these as two properties, content and
contentMap, and JSON-LD reads them as one; this is the one.
Fields§
§value: Option<String>The value with no language tag.
languages: BTreeMap<String, String>Values by BCP 47 language tag.
Implementations§
Trait Implementations§
impl Eq for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more