Struct ruma_federation_api::authenticated_media::Content
source · pub struct Content {
pub file: Vec<u8>,
pub content_type: Option<String>,
pub content_disposition: Option<ContentDisposition>,
}
Expand description
The content of a file from the content repository.
Fields§
§file: Vec<u8>
The content of the file as bytes.
content_type: Option<String>
The content type of the file that was previously uploaded.
content_disposition: Option<ContentDisposition>
The value of the Content-Disposition
HTTP header, possibly containing the name of the
file that was previously uploaded.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)