pub enum AttachmentType {
Image,
Audio,
Video,
Pdf,
File,
Text,
Json,
Url,
}Expand description
Advisory attachment kind. Agents and workflows pass attachments through without model-capability gating.
JSON schema
{
"description": "Advisory attachment kind. Agents and workflows pass attachments through without model-capability gating.",
"type": "string",
"enum": [
"image",
"audio",
"video",
"pdf",
"file",
"text",
"json",
"url"
]
}Variants§
Trait Implementations§
Source§impl Clone for AttachmentType
impl Clone for AttachmentType
Source§fn clone(&self) -> AttachmentType
fn clone(&self) -> AttachmentType
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 moreimpl Copy for AttachmentType
Source§impl Debug for AttachmentType
impl Debug for AttachmentType
Source§impl<'de> Deserialize<'de> for AttachmentType
impl<'de> Deserialize<'de> for AttachmentType
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 Display for AttachmentType
impl Display for AttachmentType
impl Eq for AttachmentType
Source§impl FromStr for AttachmentType
impl FromStr for AttachmentType
Source§impl Hash for AttachmentType
impl Hash for AttachmentType
Source§impl Ord for AttachmentType
impl Ord for AttachmentType
Source§fn cmp(&self, other: &AttachmentType) -> Ordering
fn cmp(&self, other: &AttachmentType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttachmentType
impl PartialEq for AttachmentType
Source§fn eq(&self, other: &AttachmentType) -> bool
fn eq(&self, other: &AttachmentType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AttachmentType
impl PartialOrd for AttachmentType
Source§impl Serialize for AttachmentType
impl Serialize for AttachmentType
impl StructuralPartialEq for AttachmentType
Source§impl TryFrom<&String> for AttachmentType
impl TryFrom<&String> for AttachmentType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for AttachmentType
impl TryFrom<&str> for AttachmentType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for AttachmentType
impl TryFrom<String> for AttachmentType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for AttachmentType
impl RefUnwindSafe for AttachmentType
impl Send for AttachmentType
impl Sync for AttachmentType
impl Unpin for AttachmentType
impl UnsafeUnpin for AttachmentType
impl UnwindSafe for AttachmentType
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