pub struct SessionFileReference {
pub id: String,
pub name: String,
pub size: u64,
pub media_type: String,
}Expand description
One immutable, session-bound file addressed by an opaque reference.
Only upload-origin references are valid in Op::UserInput.attachments.
Fields§
§id: String§name: String§size: u64§media_type: StringTrait Implementations§
Source§impl Clone for SessionFileReference
impl Clone for SessionFileReference
Source§fn clone(&self) -> SessionFileReference
fn clone(&self) -> SessionFileReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionFileReference
impl Debug for SessionFileReference
Source§impl<'de> Deserialize<'de> for SessionFileReference
impl<'de> Deserialize<'de> for SessionFileReference
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 SessionFileReference
Source§impl PartialEq for SessionFileReference
impl PartialEq for SessionFileReference
Source§impl Serialize for SessionFileReference
impl Serialize for SessionFileReference
impl StructuralPartialEq for SessionFileReference
Auto Trait Implementations§
impl Freeze for SessionFileReference
impl RefUnwindSafe for SessionFileReference
impl Send for SessionFileReference
impl Sync for SessionFileReference
impl Unpin for SessionFileReference
impl UnsafeUnpin for SessionFileReference
impl UnwindSafe for SessionFileReference
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