#[non_exhaustive]pub struct PromptAttachment<'a> {
pub kind: PromptAttachmentKind,
pub name: Option<&'a str>,
pub media_type: Option<&'a str>,
pub size: Option<u64>,
pub text: Option<&'a str>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: PromptAttachmentKind§name: Option<&'a str>§media_type: Option<&'a str>§size: Option<u64>Bytes: the file’s length on disk, the text’s UTF-8 length, the
image’s decoded length. None when a file’s metadata can’t be read.
text: Option<&'a str>Implementations§
Source§impl<'a> PromptAttachment<'a>
impl<'a> PromptAttachment<'a>
Trait Implementations§
Source§impl<'a> Clone for PromptAttachment<'a>
impl<'a> Clone for PromptAttachment<'a>
Source§impl<'a> Debug for PromptAttachment<'a>
impl<'a> Debug for PromptAttachment<'a>
impl<'a> Eq for PromptAttachment<'a>
Source§impl<'a> PartialEq for PromptAttachment<'a>
impl<'a> PartialEq for PromptAttachment<'a>
impl<'a> StructuralPartialEq for PromptAttachment<'a>
Auto Trait Implementations§
impl<'a> Forget for PromptAttachment<'a>
impl<'a> Freeze for PromptAttachment<'a>
impl<'a> Move for PromptAttachment<'a>
impl<'a> RefUnwindSafe for PromptAttachment<'a>
impl<'a> Send for PromptAttachment<'a>
impl<'a> Sync for PromptAttachment<'a>
impl<'a> Unpin for PromptAttachment<'a>
impl<'a> UnsafeUnpin for PromptAttachment<'a>
impl<'a> UnwindSafe for PromptAttachment<'a>
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