pub struct AgentRequestContentPart { /* private fields */ }Expand description
One typed multimodal content part in an Agent v1 request.
Implementations§
Source§impl AgentRequestContentPart
impl AgentRequestContentPart
Sourcepub const fn type_(&self) -> AgentRequestContentType
pub const fn type_(&self) -> AgentRequestContentType
Return the content-part discriminator.
Trait Implementations§
Source§impl Clone for AgentRequestContentPart
impl Clone for AgentRequestContentPart
Source§fn clone(&self) -> AgentRequestContentPart
fn clone(&self) -> AgentRequestContentPart
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 AgentRequestContentPart
impl Debug for AgentRequestContentPart
Source§impl<'de> Deserialize<'de> for AgentRequestContentPart
impl<'de> Deserialize<'de> for AgentRequestContentPart
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<AgentRequestContentPart> for AgentContent
impl From<AgentRequestContentPart> for AgentContent
Source§fn from(value: AgentRequestContentPart) -> Self
fn from(value: AgentRequestContentPart) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentRequestContentPart
impl RefUnwindSafe for AgentRequestContentPart
impl Send for AgentRequestContentPart
impl Sync for AgentRequestContentPart
impl Unpin for AgentRequestContentPart
impl UnsafeUnpin for AgentRequestContentPart
impl UnwindSafe for AgentRequestContentPart
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