[−][src]Struct rocket_mongo_file_center_download_response::FileCenterDownloadResponse
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]
file_item: FileItem,
file_name: Option<S>
) -> FileCenterDownloadResponse
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]
file_center: &FileCenter,
id: &ObjectId,
file_name: Option<S>
) -> Result<Option<FileCenterDownloadResponse>, FileCenterError>
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]
file_center: &FileCenter,
id_token: T,
file_name: Option<S>
) -> Result<Option<FileCenterDownloadResponse>, FileCenterError>
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]
fn respond_to(self, _: &Request) -> Result<'static>
[src]
Auto Trait Implementations
impl Send for FileCenterDownloadResponse
impl Unpin for FileCenterDownloadResponse
impl Sync for FileCenterDownloadResponse
impl !UnwindSafe for FileCenterDownloadResponse
impl !RefUnwindSafe for FileCenterDownloadResponse
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,