pub struct Link {
pub valid: bool,
pub path: Option<String>,
pub directory: bool,
pub expires: Option<String>,
pub accesses: Option<u32>,
pub access_limit: Option<u32>,
}Expand description
A link that shares a file or folder of the storage. Its URL grants access and is never read.
Fields§
§valid: bool§path: Option<String>The shared file or folder. Identifying.
directory: bool§expires: Option<String>When the link expires, or None if it never does.
accesses: Option<u32>§access_limit: Option<u32>The most accesses allowed, or None without a limit.
Trait Implementations§
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Forget for Link
impl Freeze for Link
impl Move for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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