pub struct LinkOptions {
pub max_uses: Option<u32>,
pub expires: Option<DateTime<Utc>>,
}Expand description
The options argument of generate_link.
Fields§
§max_uses: Option<u32>§expires: Option<DateTime<Utc>>When it stops working: in the future and at most a year out. Seven days
from now when None.
Trait Implementations§
Auto Trait Implementations§
impl Forget for LinkOptions
impl Freeze for LinkOptions
impl Move for LinkOptions
impl RefUnwindSafe for LinkOptions
impl Send for LinkOptions
impl Sync for LinkOptions
impl Unpin for LinkOptions
impl UnsafeUnpin for LinkOptions
impl UnwindSafe for LinkOptions
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