pub enum DocumentFormat {
PDF,
}Expand description
The media type for base64-encoded documents.
Used with the DocumentSource::Base64 variant. Currently only PDF is supported
for base64-encoded document sources.
See: https://docs.anthropic.com/en/docs/build-with-claude/pdf-support
Variants§
Trait Implementations§
Source§impl Clone for DocumentFormat
impl Clone for DocumentFormat
Source§fn clone(&self) -> DocumentFormat
fn clone(&self) -> DocumentFormat
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 DocumentFormat
impl Debug for DocumentFormat
Source§impl<'de> Deserialize<'de> for DocumentFormat
impl<'de> Deserialize<'de> for DocumentFormat
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DocumentFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DocumentFormat
impl PartialEq for DocumentFormat
Source§impl Serialize for DocumentFormat
impl Serialize for DocumentFormat
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<DocumentMediaType> for DocumentFormat
impl TryFrom<DocumentMediaType> for DocumentFormat
Source§type Error = MessageError
type Error = MessageError
The type returned in the event of a conversion error.
Source§fn try_from(
value: DocumentMediaType,
) -> Result<DocumentFormat, <DocumentFormat as TryFrom<DocumentMediaType>>::Error>
fn try_from( value: DocumentMediaType, ) -> Result<DocumentFormat, <DocumentFormat as TryFrom<DocumentMediaType>>::Error>
Performs the conversion.
impl StructuralPartialEq for DocumentFormat
Auto Trait Implementations§
impl Freeze for DocumentFormat
impl RefUnwindSafe for DocumentFormat
impl Send for DocumentFormat
impl Sync for DocumentFormat
impl Unpin for DocumentFormat
impl UnsafeUnpin for DocumentFormat
impl UnwindSafe for DocumentFormat
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