Enum okane_core::repl::Metadata
source · pub enum Metadata {
Comment(String),
WordTags(Vec<String>),
KeyValueTag {
key: String,
value: MetadataValue,
},
}Expand description
Metadata represents meta information associated with transactions / posts.
Variants§
Comment(String)
Comment, which covers just one line (without the suceeding new line).
WordTags(Vec<String>)
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 PartialEq for Metadata
impl PartialEq for Metadata
impl Eq for Metadata
impl StructuralEq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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