pub struct TextObject {
pub content: String,
pub link: Option<String>,
}
Fields§
§content: String
§link: Option<String>
Trait Implementations§
Source§impl Clone for TextObject
impl Clone for TextObject
Source§fn clone(&self) -> TextObject
fn clone(&self) -> TextObject
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextObject
impl Debug for TextObject
Source§impl Default for TextObject
impl Default for TextObject
Source§fn default() -> TextObject
fn default() -> TextObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextObject
impl<'de> Deserialize<'de> for TextObject
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
Auto Trait Implementations§
impl Freeze for TextObject
impl RefUnwindSafe for TextObject
impl Send for TextObject
impl Sync for TextObject
impl Unpin for TextObject
impl UnwindSafe for TextObject
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