pub struct RichBlockListItem {
pub label: String,
pub blocks: Vec<RichBlock>,
pub has_checkbox: bool,
pub is_checked: bool,
pub value: Option<i64>,
pub type: Option<String>,
}Expand description
An item of a list.
Fields§
§label: StringLabel of the item.
blocks: Vec<RichBlock>The content of the item.
has_checkbox: booltrue if the item has a checkbox.
is_checked: booltrue if the item has a checked checkbox.
value: Option<i64>For ordered lists, numeric value of the item label.
type: Option<String>For ordered lists, type of item label: "a", "A", "i", "I", or
"1".
This is a data field (ordered-list label style), not a serde discriminator.
Trait Implementations§
Source§impl Clone for RichBlockListItem
impl Clone for RichBlockListItem
Source§fn clone(&self) -> RichBlockListItem
fn clone(&self) -> RichBlockListItem
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 RichBlockListItem
impl Debug for RichBlockListItem
Source§impl<'de> Deserialize<'de> for RichBlockListItem
impl<'de> Deserialize<'de> for RichBlockListItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RichBlockListItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RichBlockListItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RichBlockListItem
impl PartialEq for RichBlockListItem
Source§impl Serialize for RichBlockListItem
impl Serialize for RichBlockListItem
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RichBlockListItem
Auto Trait Implementations§
impl Forget for RichBlockListItem
impl Freeze for RichBlockListItem
impl Move for RichBlockListItem
impl RefUnwindSafe for RichBlockListItem
impl Send for RichBlockListItem
impl Sync for RichBlockListItem
impl Unpin for RichBlockListItem
impl UnsafeUnpin for RichBlockListItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RichBlock>: UnsafeUnpin,
impl UnwindSafe for RichBlockListItem
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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