pub struct Attachment {
pub name: String,
pub mime: String,
pub path: Option<String>,
pub data: Option<String>,
pub text: Option<String>,
pub size: u64,
pub raw_prompt: Option<String>,
}Expand description
Attachments sent with a prompt (files or images). Content is read and inlined by the sender (TUI/CLI), so the remote daemon does not need access to the same filesystem.
Fields§
§name: StringDisplay filename.
mime: StringMIME type, e.g. image/png, text/plain.
path: Option<String>Original path (for reference / PTY use only).
data: Option<String>Base64 content of image.
text: Option<String>Content of text file.
size: u64§raw_prompt: Option<String>Raw user input text (including @filename, for queue preview and :unqueue restoration).
Implementations§
Source§impl Attachment
impl Attachment
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§impl Debug for Attachment
impl Debug for Attachment
Source§impl Default for Attachment
impl Default for Attachment
Source§impl<'de> Deserialize<'de> for Attachment
impl<'de> Deserialize<'de> for Attachment
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 PartialEq for Attachment
impl PartialEq for Attachment
Source§impl Serialize for Attachment
impl Serialize for Attachment
impl StructuralPartialEq for Attachment
Auto Trait Implementations§
impl Forget for Attachment
impl Freeze for Attachment
impl Move for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachmentwhere
RawVecInner: Send,
impl Sync for Attachmentwhere
RawVecInner: Sync,
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachmentwhere
RawVecInner: UnwindSafe,
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