pub struct CandidateContent {
pub parts: Option<Vec<Part>>,
pub role: Option<String>,
}Expand description
Content of a candidate.
Fields§
§parts: Option<Vec<Part>>Parts.
role: Option<String>Role (model).
Trait Implementations§
Source§impl Clone for CandidateContent
impl Clone for CandidateContent
Source§fn clone(&self) -> CandidateContent
fn clone(&self) -> CandidateContent
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 CandidateContent
impl Debug for CandidateContent
Source§impl Default for CandidateContent
impl Default for CandidateContent
Source§fn default() -> CandidateContent
fn default() -> CandidateContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CandidateContent
impl<'de> Deserialize<'de> for CandidateContent
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 CandidateContent
impl RefUnwindSafe for CandidateContent
impl Send for CandidateContent
impl Sync for CandidateContent
impl Unpin for CandidateContent
impl UnsafeUnpin for CandidateContent
impl UnwindSafe for CandidateContent
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