pub struct LlmAttachment {
pub mime: String,
pub data: Vec<u8>,
pub reference: Option<AttachmentRef>,
}Fields§
§mime: String§data: Vec<u8>§reference: Option<AttachmentRef>Implementations§
Source§impl LlmAttachment
impl LlmAttachment
pub fn bytes(mime: impl Into<String>, data: Vec<u8>) -> LlmAttachment
pub fn reference(reference: AttachmentRef) -> LlmAttachment
pub fn is_resolved(&self) -> bool
Trait Implementations§
Source§impl Clone for LlmAttachment
impl Clone for LlmAttachment
Source§fn clone(&self) -> LlmAttachment
fn clone(&self) -> LlmAttachment
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 LlmAttachment
impl Debug for LlmAttachment
Source§impl<'de> Deserialize<'de> for LlmAttachment
impl<'de> Deserialize<'de> for LlmAttachment
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LlmAttachment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LlmAttachment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LlmAttachment
Source§impl PartialEq for LlmAttachment
impl PartialEq for LlmAttachment
Source§fn eq(&self, other: &LlmAttachment) -> bool
fn eq(&self, other: &LlmAttachment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LlmAttachment
impl Serialize for LlmAttachment
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
impl StructuralPartialEq for LlmAttachment
Auto Trait Implementations§
impl Freeze for LlmAttachment
impl RefUnwindSafe for LlmAttachment
impl Send for LlmAttachment
impl Sync for LlmAttachment
impl Unpin for LlmAttachment
impl UnsafeUnpin for LlmAttachment
impl UnwindSafe for LlmAttachment
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