pub struct PropertyRow {
pub prop_id: String,
pub block_id: Option<String>,
pub source: Source,
pub key: String,
pub card: Card,
pub ord: u32,
pub ty: ValueType,
pub val_text: Option<String>,
pub val_num: Option<f64>,
pub val_bool: Option<bool>,
pub val_json: Option<String>,
}Expand description
One property row (§1).
Fields§
§prop_id: String"p_" + the first 12 hex characters of
sha256(doc_id + "|" + source + "|" + key + "|" + ord).
block_id: Option<String>The authoring block for inline rows; None for frontmatter and computed.
source: Source§key: StringDotted, flattened; computed keys carry $.
card: Card§ord: u32Position within a multi-value key, from 0; 0 for a scalar.
ty: ValueType§val_text: Option<String>§val_num: Option<f64>May be non-finite (§8).
val_bool: Option<bool>§val_json: Option<String>JSON text: the json value, or the range side channel (§2.2).
Trait Implementations§
Source§impl Clone for PropertyRow
impl Clone for PropertyRow
Source§fn clone(&self) -> PropertyRow
fn clone(&self) -> PropertyRow
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 PropertyRow
impl Debug for PropertyRow
Source§impl PartialEq for PropertyRow
impl PartialEq for PropertyRow
impl StructuralPartialEq for PropertyRow
Auto Trait Implementations§
impl Freeze for PropertyRow
impl RefUnwindSafe for PropertyRow
impl Send for PropertyRow
impl Sync for PropertyRow
impl Unpin for PropertyRow
impl UnsafeUnpin for PropertyRow
impl UnwindSafe for PropertyRow
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