pub struct UploadLink {
pub link_id: UploadLinkId,
pub opaque_id: [u8; 16],
pub drop_pubkey: Vec<u8>,
pub caps: LinkCaps,
}Expand description
A provisioned upload link: the server-held record plus the fragment-delivered public
half. The opaque_id follows the share-link rule (random ≥128-bit, never structured);
drop_pubkey travels only in the URL fragment and never reaches the server.
Fields§
§link_id: UploadLinkIdRevocation handle (internal owner-held; never in the URL, so a creation-time-leaking
UUIDv7 is fine here — unlike opaque_id, which is
URL-exposed and must be non-structured).
opaque_id: [u8; 16]The link’s random 128-bit opaque id (the URL path component).
drop_pubkey: Vec<u8>The Drop Key public half (KEM encapsulation key; URL fragment only).
caps: LinkCapsThe caps this link was provisioned with.
Trait Implementations§
Source§impl Clone for UploadLink
impl Clone for UploadLink
Source§fn clone(&self) -> UploadLink
fn clone(&self) -> UploadLink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UploadLink
impl RefUnwindSafe for UploadLink
impl Send for UploadLink
impl Sync for UploadLink
impl Unpin for UploadLink
impl UnsafeUnpin for UploadLink
impl UnwindSafe for UploadLink
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more