pub struct ReplyAttachment {
pub path: String,
pub name: String,
pub mime: String,
pub size: u64,
pub caption: String,
}Expand description
A file the model attached to its reply with CHAT_ATTACH_TOOL, as the
tool’s successful tool.completed output reports it.
Fields§
§path: StringAbsolute, symlink-free path of the file the tool checked.
name: StringThe name to show the recipient.
mime: StringMIME type, such as application/pdf; empty when unknown.
size: u64Size in bytes.
caption: StringText sent with the file, if any.
Trait Implementations§
Source§impl Clone for ReplyAttachment
impl Clone for ReplyAttachment
Source§impl Debug for ReplyAttachment
impl Debug for ReplyAttachment
Source§impl<'de> Deserialize<'de> for ReplyAttachment
impl<'de> Deserialize<'de> for ReplyAttachment
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
impl Eq for ReplyAttachment
Source§impl PartialEq for ReplyAttachment
impl PartialEq for ReplyAttachment
Source§impl Serialize for ReplyAttachment
impl Serialize for ReplyAttachment
impl StructuralPartialEq for ReplyAttachment
Auto Trait Implementations§
impl Freeze for ReplyAttachment
impl RefUnwindSafe for ReplyAttachment
impl Send for ReplyAttachment
impl Sync for ReplyAttachment
impl Unpin for ReplyAttachment
impl UnsafeUnpin for ReplyAttachment
impl UnwindSafe for ReplyAttachment
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