pub struct InfoResponse { /* private fields */ }Expand description
The file info response.
Implementations§
Source§impl InfoResponse
impl InfoResponse
Sourcepub fn download_count(&self) -> usize
pub fn download_count(&self) -> usize
Get the number of times this file has been downloaded.
Sourcepub fn download_limit(&self) -> usize
pub fn download_limit(&self) -> usize
Get the maximum number of times the file may be downloaded.
Sourcepub fn download_left(&self) -> usize
pub fn download_left(&self) -> usize
Get the number of times this file may still be downloaded.
Sourcepub fn ttl_millis(&self) -> u64
pub fn ttl_millis(&self) -> u64
Get the time to live for this file, in milliseconds from the time the request was made.
Trait Implementations§
Source§impl Debug for InfoResponse
impl Debug for InfoResponse
Source§impl<'de> Deserialize<'de> for InfoResponse
impl<'de> Deserialize<'de> for InfoResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InfoResponse
impl RefUnwindSafe for InfoResponse
impl Send for InfoResponse
impl Sync for InfoResponse
impl Unpin for InfoResponse
impl UnwindSafe for InfoResponse
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