pub struct FileUIPart {
pub url: String,
pub media_type: String,
pub filename: Option<String>,
pub provider_metadata: Option<Value>,
/* private fields */
}Expand description
File attachment.
Fields§
§url: StringFile URL.
media_type: StringIANA media type.
filename: Option<String>Optional filename.
provider_metadata: Option<Value>Optional provider metadata.
Trait Implementations§
Source§impl Clone for FileUIPart
impl Clone for FileUIPart
Source§fn clone(&self) -> FileUIPart
fn clone(&self) -> FileUIPart
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileUIPart
impl Debug for FileUIPart
Source§impl<'de> Deserialize<'de> for FileUIPart
impl<'de> Deserialize<'de> for FileUIPart
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 FileUIPart
impl PartialEq for FileUIPart
Source§impl Serialize for FileUIPart
impl Serialize for FileUIPart
impl StructuralPartialEq for FileUIPart
Auto Trait Implementations§
impl Freeze for FileUIPart
impl RefUnwindSafe for FileUIPart
impl Send for FileUIPart
impl Sync for FileUIPart
impl Unpin for FileUIPart
impl UnwindSafe for FileUIPart
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