pub struct CreateRequest {
pub description: String,
pub from: Option<String>,
pub message: Option<String>,
pub pin: Option<String>,
pub expires: Duration,
pub uploads: u32,
}Expand description
What to create: the ask (description), optional trust metadata (who’s
asking, why), an optional PIN the gate checks before handing out an
upload slot, how long the link stays live, and the upload budget.
SelfHosted::create_request consumes this; the CLI (and later the desktop
app) build it from user input.
Fields§
§description: String§from: Option<String>§message: Option<String>§pin: Option<String>§expires: Duration§uploads: u32Trait Implementations§
Source§impl Clone for CreateRequest
impl Clone for CreateRequest
Source§fn clone(&self) -> CreateRequest
fn clone(&self) -> CreateRequest
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 CreateRequest
impl RefUnwindSafe for CreateRequest
impl Send for CreateRequest
impl Sync for CreateRequest
impl Unpin for CreateRequest
impl UnsafeUnpin for CreateRequest
impl UnwindSafe for CreateRequest
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