#[non_exhaustive]pub struct CalloutListItem {
pub callout: CalloutRef,
pub principal: Vec<InlineNode>,
pub blocks: Vec<Block>,
pub location: Location,
}Expand description
A CalloutListItem represents an item in a callout list.
Unlike ListItem, callout list items have a structured CalloutRef that
preserves whether the original marker was explicit (<1>) or auto-numbered (<.>).
§Example
<1> First explanation
<.> Auto-numbered explanationFields (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.callout: CalloutRefThe callout reference (explicit or auto-numbered).
principal: Vec<InlineNode>Principal text - inline content that appears after the callout marker.
blocks: Vec<Block>Attached blocks - blocks attached via continuation (though rarely used for callouts).
location: LocationSource location of this item.
Trait Implementations§
Source§impl Clone for CalloutListItem
impl Clone for CalloutListItem
Source§fn clone(&self) -> CalloutListItem
fn clone(&self) -> CalloutListItem
Returns a duplicate 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 CalloutListItem
impl Debug for CalloutListItem
Source§impl<'de> Deserialize<'de> for CalloutListItem
impl<'de> Deserialize<'de> for CalloutListItem
Source§fn deserialize<D>(deserializer: D) -> Result<CalloutListItem, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<CalloutListItem, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CalloutListItem
impl PartialEq for CalloutListItem
Source§impl Serialize for CalloutListItem
impl Serialize for CalloutListItem
impl StructuralPartialEq for CalloutListItem
Auto Trait Implementations§
impl Freeze for CalloutListItem
impl RefUnwindSafe for CalloutListItem
impl Send for CalloutListItem
impl Sync for CalloutListItem
impl Unpin for CalloutListItem
impl UnwindSafe for CalloutListItem
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