pub struct Attachment {
pub path: PathBuf,
pub filename: String,
pub mime_type: String,
pub size: u64,
pub content: AttachmentContent,
}Expand description
A resolved file attachment ready for embedding in a prompt.
Fields§
§path: PathBuf§filename: String§mime_type: String§size: u64§content: AttachmentContentImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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