pub enum RecordKind {
Value {
keyword: String,
value: Value,
comment: Option<String>,
},
Commentary {
keyword: String,
text: String,
},
Opaque {
text: String,
},
}Expand description
Variants§
Value
An addressable value card: KEYWORD = value / comment.
Fields
Commentary
A repeatable free-text card: COMMENT/HISTORY/blank keyword.
Fields
Opaque
A preserved card that is not addressable as a keyword (HIERARCH, unrecognized, blank).
text holds the card content for display/serialization.
Trait Implementations§
Source§impl Clone for RecordKind
impl Clone for RecordKind
Source§fn clone(&self) -> RecordKind
fn clone(&self) -> RecordKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordKind
impl Debug for RecordKind
Source§impl<'de> Deserialize<'de> for RecordKind
impl<'de> Deserialize<'de> for RecordKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RecordKind
Source§impl PartialEq for RecordKind
impl PartialEq for RecordKind
Source§impl Serialize for RecordKind
impl Serialize for RecordKind
impl StructuralPartialEq for RecordKind
Auto Trait Implementations§
impl Freeze for RecordKind
impl RefUnwindSafe for RecordKind
impl Send for RecordKind
impl Sync for RecordKind
impl Unpin for RecordKind
impl UnsafeUnpin for RecordKind
impl UnwindSafe for RecordKind
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