pub struct File {
pub marker: bool,
pub id: Option<String>,
pub name: String,
pub kind: FileKind,
pub transfer: FileTransfer,
pub url: Option<String>,
pub reference: Option<String>,
pub mime_type: Option<String>,
pub size: Option<u64>,
pub extension: Option<String>,
}Expand description
A reference to a file. Content is resolved by the host.
Fields§
§marker: boolAlways true; marks this object as a file when serialized to JSON.
id: Option<String>§name: String§kind: FileKind§transfer: FileTransfer§url: Option<String>§reference: Option<String>Opaque host storage key for local_file / tool_file.
mime_type: Option<String>§size: Option<u64>§extension: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
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 StructuralPartialEq for File
Auto Trait Implementations§
impl Forget for File
impl Freeze for File
impl Move for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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