pub enum Metadata<'i> {
Comment(Cow<'i, str>),
WordTags(Vec<Cow<'i, str>>),
KeyValueTag {
key: Cow<'i, str>,
value: MetadataValue<'i>,
},
}
Expand description
Metadata represents meta information associated with transactions / posts.
Variants§
Comment(Cow<'i, str>)
Comment, which covers just one line (without the suceeding new line).
WordTags(Vec<Cow<'i, str>>)
Tags of word, in a format :tag1:tag2:tag3:, each tag can’t contain white spaces.
KeyValueTag
Key-value paired tag. Key can’t contain white spaces.
Trait Implementations§
Source§impl<'i> IntoBoundedStatic for Metadata<'i>
impl<'i> IntoBoundedStatic for Metadata<'i>
Source§impl<'i> ToBoundedStatic for Metadata<'i>
impl<'i> ToBoundedStatic for Metadata<'i>
impl<'i> Eq for Metadata<'i>
impl<'i> StructuralPartialEq for Metadata<'i>
Auto Trait Implementations§
impl<'i> Freeze for Metadata<'i>
impl<'i> RefUnwindSafe for Metadata<'i>
impl<'i> Send for Metadata<'i>
impl<'i> Sync for Metadata<'i>
impl<'i> Unpin for Metadata<'i>
impl<'i> UnwindSafe for Metadata<'i>
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