pub enum PropertyValue {
String(String),
Int(i64),
Float(f64),
Bool(bool),
Array(Vec<PropertyValue>),
Null,
}Expand description
A row-polymorphic property value – any attribute that varies by block type.
Common keys per block type:
Heading→"depth": Int,"slug": StringCode→"lang": String,"meta": String,"fence": BoolList→"ordered": Bool,"level": Int,"checked": BoolTableCell→"row": Int,"column": IntYaml→ parsed frontmatter keys (e.g."title","tags")
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PropertyValue
impl Clone for PropertyValue
Source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
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 PropertyValue
impl Debug for PropertyValue
Source§impl From<&str> for PropertyValue
impl From<&str> for PropertyValue
Source§impl From<String> for PropertyValue
impl From<String> for PropertyValue
Source§impl From<bool> for PropertyValue
impl From<bool> for PropertyValue
Source§impl From<i64> for PropertyValue
impl From<i64> for PropertyValue
Source§impl From<u8> for PropertyValue
impl From<u8> for PropertyValue
Source§impl From<u32> for PropertyValue
impl From<u32> for PropertyValue
Source§impl From<usize> for PropertyValue
impl From<usize> for PropertyValue
Source§impl PartialEq for PropertyValue
impl PartialEq for PropertyValue
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnsafeUnpin for PropertyValue
impl UnwindSafe for PropertyValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more