pub struct Frame {Show 18 fields
pub id: EntityId,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub parent_frame: Option<EntityId>,
pub blocks: Vec<EntityId>,
pub child_order: Vec<i64>,
pub fmt_height: Option<i64>,
pub fmt_width: Option<i64>,
pub fmt_top_margin: Option<i64>,
pub fmt_bottom_margin: Option<i64>,
pub fmt_left_margin: Option<i64>,
pub fmt_right_margin: Option<i64>,
pub fmt_padding: Option<i64>,
pub fmt_border: Option<i64>,
pub fmt_position: Option<FramePosition>,
pub fmt_is_blockquote: Option<bool>,
pub table: Option<EntityId>,
pub byte_range: (u32, u32),
}Fields§
§id: EntityId§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§parent_frame: Option<EntityId>§blocks: Vec<EntityId>§child_order: Vec<i64>§fmt_height: Option<i64>§fmt_width: Option<i64>§fmt_top_margin: Option<i64>§fmt_bottom_margin: Option<i64>§fmt_left_margin: Option<i64>§fmt_right_margin: Option<i64>§fmt_padding: Option<i64>§fmt_border: Option<i64>§fmt_position: Option<FramePosition>§fmt_is_blockquote: Option<bool>§table: Option<EntityId>§byte_range: (u32, u32)Rope byte range occupied by this frame’s contents. Plan §1.6
invariant: all blocks in Frame.blocks have byte ranges
contained within this range, and no two frames’ ranges
overlap. Empty/unset = (0, 0). Internal field — not
surfaced through DTOs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Frame
impl<'de> Deserialize<'de> for Frame
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 Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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