#[non_exhaustive]pub struct Content {
pub file: Vec<u8>,
pub content_type: Option<String>,
pub content_disposition: Option<ContentDisposition>,
}
Available on crate feature
api
and (crate features federation-api-c
or federation-api-s
) only.Expand description
The content of a file from the content repository.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.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