pub struct InputRichBlockPullQuotation {
pub kind: String,
pub text: Box<RichTextUnion>,
pub credit: Option<Box<RichTextUnion>>,
pub extra: BTreeMap<String, Value>,
}Expand description
A quotation with centered text, loosely corresponding to the HTML tag
Fields§
§kind: StringType of the block, always ‘pullquote’
text: Box<RichTextUnion>Text of the block
credit: Option<Box<RichTextUnion>>Credit of the block
extra: BTreeMap<String, Value>Implementations§
Source§impl InputRichBlockPullQuotation
impl InputRichBlockPullQuotation
pub fn new(text: Box<RichTextUnion>) -> Self
pub fn credit(self, value: Box<RichTextUnion>) -> Self
Trait Implementations§
Source§impl Clone for InputRichBlockPullQuotation
impl Clone for InputRichBlockPullQuotation
Source§impl Debug for InputRichBlockPullQuotation
impl Debug for InputRichBlockPullQuotation
Source§impl<'de> Deserialize<'de> for InputRichBlockPullQuotation
impl<'de> Deserialize<'de> for InputRichBlockPullQuotation
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 From<InputRichBlockPullQuotation> for InputRichBlockUnion
impl From<InputRichBlockPullQuotation> for InputRichBlockUnion
Source§fn from(value: InputRichBlockPullQuotation) -> Self
fn from(value: InputRichBlockPullQuotation) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for InputRichBlockPullQuotation
Auto Trait Implementations§
impl Freeze for InputRichBlockPullQuotation
impl RefUnwindSafe for InputRichBlockPullQuotation
impl Send for InputRichBlockPullQuotation
impl Sync for InputRichBlockPullQuotation
impl Unpin for InputRichBlockPullQuotation
impl UnsafeUnpin for InputRichBlockPullQuotation
impl UnwindSafe for InputRichBlockPullQuotation
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