[][src]Struct rocket_mongo_file_center_download_response::FileCenterDownloadResponse

pub struct FileCenterDownloadResponse { /* fields omitted */ }

The response struct used for responding raw data from the File Center on MongoDB with Etag cache.

Methods

impl FileCenterDownloadResponse[src]

pub fn from_file_item<S: Into<String>>(
    file_item: FileItem,
    file_name: Option<S>
) -> FileCenterDownloadResponse
[src]

Create a FileCenterDownloadResponse instance from a file item.

pub fn from_object_id<S: Into<String>>(
    file_center: &FileCenter,
    id: &ObjectId,
    file_name: Option<S>
) -> Result<Option<FileCenterDownloadResponse>, FileCenterError>
[src]

Create a FileCenterDownloadResponse instance from the object ID.

pub fn from_id_token<T: AsRef<str> + Into<String>, S: Into<String>>(
    file_center: &FileCenter,
    id_token: T,
    file_name: Option<S>
) -> Result<Option<FileCenterDownloadResponse>, FileCenterError>
[src]

Create a FileCenterDownloadResponse instance from an ID token.

pub fn is_temporary(&self) -> bool[src]

Check if the file item is temporary.

Trait Implementations

impl Debug for FileCenterDownloadResponse[src]

impl Responder<'static> for FileCenterDownloadResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Typeable for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,