Struct rocket_mongo_file_center_download_response::FileCenterDownloadResponse [−][src]
pub struct FileCenterDownloadResponse { /* fields omitted */ }
Expand description
The response struct used for client downloading from the File Center on MongoDB.
Implementations
pub fn from_file_item<S: Into<String>>(
file_item: FileItem,
file_name: Option<S>
) -> FileCenterDownloadResponse
pub fn from_file_item<S: Into<String>>(
file_item: FileItem,
file_name: Option<S>
) -> FileCenterDownloadResponse
Create a FileCenterDownloadResponse
instance from a file item.
pub async fn from_object_id<S: Into<String>>(
file_center: &FileCenter,
id: ObjectId,
file_name: Option<S>
) -> Result<Option<FileCenterDownloadResponse>, FileCenterError>
pub async fn from_object_id<S: Into<String>>(
file_center: &FileCenter,
id: ObjectId,
file_name: Option<S>
) -> Result<Option<FileCenterDownloadResponse>, FileCenterError>
Create a FileCenterDownloadResponse
instance from the object ID.
pub async fn from_id_token<I: AsRef<str> + Into<String>, S: Into<String>>(
file_center: &FileCenter,
id_token: I,
file_name: Option<S>
) -> Result<Option<FileCenterDownloadResponse>, FileCenterError>
pub async fn from_id_token<I: AsRef<str> + Into<String>, S: Into<String>>(
file_center: &FileCenter,
id_token: I,
file_name: Option<S>
) -> Result<Option<FileCenterDownloadResponse>, FileCenterError>
Create a FileCenterDownloadResponse
instance from an ID token.
Check if the file item is temporary.
Trait Implementations
Returns Ok
if a Response
could be generated successfully. Otherwise,
returns an Err
with a failing Status
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for FileCenterDownloadResponse
impl Send for FileCenterDownloadResponse
impl !Sync for FileCenterDownloadResponse
impl Unpin for FileCenterDownloadResponse
impl !UnwindSafe for FileCenterDownloadResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more