Struct fiberplane_models::notebooks::ListItemCell
source · #[non_exhaustive]pub struct ListItemCell {
pub id: String,
pub content: String,
pub formatting: Formatting,
pub list_type: ListType,
pub level: Option<u8>,
pub read_only: Option<bool>,
pub start_number: Option<u16>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§content: String§formatting: FormattingOptional formatting to be applied to the cell’s content.
list_type: ListType§level: Option<u8>§read_only: Option<bool>§start_number: Option<u16>Implementations§
source§impl ListItemCell
impl ListItemCell
sourcepub fn builder() -> ListItemCellBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ListItemCellBuilder<((), (), (), (), (), (), ())>
Create a builder for building ListItemCell.
On the builder, call .id(...)(optional), .content(...)(optional), .formatting(...)(optional), .list_type(...)(optional), .level(...)(optional), .read_only(...)(optional), .start_number(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ListItemCell.
Trait Implementations§
source§impl Clone for ListItemCell
impl Clone for ListItemCell
source§fn clone(&self) -> ListItemCell
fn clone(&self) -> ListItemCell
Returns a copy of the value. Read more
1.0.0 · 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 ListItemCell
impl Debug for ListItemCell
source§impl Default for ListItemCell
impl Default for ListItemCell
source§fn default() -> ListItemCell
fn default() -> ListItemCell
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ListItemCell
impl<'de> Deserialize<'de> for ListItemCell
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
source§impl PartialEq for ListItemCell
impl PartialEq for ListItemCell
source§fn eq(&self, other: &ListItemCell) -> bool
fn eq(&self, other: &ListItemCell) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ListItemCell
impl Serialize for ListItemCell
impl Eq for ListItemCell
impl StructuralPartialEq for ListItemCell
Auto Trait Implementations§
impl RefUnwindSafe for ListItemCell
impl Send for ListItemCell
impl Sync for ListItemCell
impl Unpin for ListItemCell
impl UnwindSafe for ListItemCell
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