pub struct RichTextObject {
pub type: Type,
pub text: Option<String>,
pub annotations: Option<Box<TextAnnotations>>,
pub href: Option<String>,
}Fields§
§type: Type§text: Option<String>§annotations: Option<Box<TextAnnotations>>§href: Option<String>External URL (https://…) or internal note anchor (#blockId, #heading-slug). Internal anchors resolve to the matching block in the same note.
Implementations§
Source§impl RichTextObject
impl RichTextObject
pub fn new(type: Type) -> RichTextObject
Trait Implementations§
Source§impl Clone for RichTextObject
impl Clone for RichTextObject
Source§fn clone(&self) -> RichTextObject
fn clone(&self) -> RichTextObject
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 RichTextObject
impl Debug for RichTextObject
Source§impl Default for RichTextObject
impl Default for RichTextObject
Source§fn default() -> RichTextObject
fn default() -> RichTextObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RichTextObject
impl<'de> Deserialize<'de> for RichTextObject
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 RichTextObject
impl PartialEq for RichTextObject
Source§fn eq(&self, other: &RichTextObject) -> bool
fn eq(&self, other: &RichTextObject) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RichTextObject
impl Serialize for RichTextObject
impl StructuralPartialEq for RichTextObject
Auto Trait Implementations§
impl Freeze for RichTextObject
impl RefUnwindSafe for RichTextObject
impl Send for RichTextObject
impl Sync for RichTextObject
impl Unpin for RichTextObject
impl UnsafeUnpin for RichTextObject
impl UnwindSafe for RichTextObject
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