pub enum MetaValue {
Str(String),
Num(u64),
}Expand description
A metadata value: a string (title, format tag, sheet name list joined) or a
non-negative count (pages, sheets). Serializes to a bare JSON string or
number — no wrapper object — so {text, metadata} stays flat and readable.
Variants§
Str(String)
A textual value (e.g. document title, the format tag).
Num(u64)
A non-negative count (e.g. page count, sheet count).
Trait Implementations§
impl Eq for MetaValue
impl StructuralPartialEq for MetaValue
Auto Trait Implementations§
impl Freeze for MetaValue
impl RefUnwindSafe for MetaValue
impl Send for MetaValue
impl Sync for MetaValue
impl Unpin for MetaValue
impl UnsafeUnpin for MetaValue
impl UnwindSafe for MetaValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.