pub struct ContentPartText {
pub content_type: String,
pub text: String,
}Expand description
Text content part
Fields§
§content_type: String§text: StringImplementations§
Trait Implementations§
Source§impl Clone for ContentPartText
impl Clone for ContentPartText
Source§fn clone(&self) -> ContentPartText
fn clone(&self) -> ContentPartText
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 ContentPartText
impl Debug for ContentPartText
Source§impl<'de> Deserialize<'de> for ContentPartText
impl<'de> Deserialize<'de> for ContentPartText
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<&str> for ContentPartText
impl From<&str> for ContentPartText
Source§impl From<String> for ContentPartText
impl From<String> for ContentPartText
Source§impl PartialEq for ContentPartText
impl PartialEq for ContentPartText
Source§impl Serialize for ContentPartText
impl Serialize for ContentPartText
impl StructuralPartialEq for ContentPartText
Auto Trait Implementations§
impl Freeze for ContentPartText
impl RefUnwindSafe for ContentPartText
impl Send for ContentPartText
impl Sync for ContentPartText
impl Unpin for ContentPartText
impl UnsafeUnpin for ContentPartText
impl UnwindSafe for ContentPartText
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