pub struct DownloadLink<'a> {
pub key: &'a StorageKey,
pub content_type: &'a ContentType,
pub filename: Option<&'a str>,
pub now: Timestamp,
pub valid_for: Duration,
}Fields§
§key: &'a StorageKey§content_type: &'a ContentType§filename: Option<&'a str>What the browser saves it as; without one it names the file from the link.
now: Timestamp§valid_for: DurationFrom a second to seven days: Storage refuses any other.
Auto Trait Implementations§
impl<'a> Forget for DownloadLink<'a>
impl<'a> Freeze for DownloadLink<'a>
impl<'a> RefUnwindSafe for DownloadLink<'a>
impl<'a> Send for DownloadLink<'a>
impl<'a> Sync for DownloadLink<'a>
impl<'a> Unpin for DownloadLink<'a>
impl<'a> UnsafeUnpin for DownloadLink<'a>
impl<'a> UnwindSafe for DownloadLink<'a>
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