pub struct InviteCreateArgs {
pub uses: Option<u32>,
pub expires_in: Option<String>,
pub base_url: String,
}Expand description
Arguments for invite create.
Fields§
§uses: Option<u32>Maximum redemptions. Omit for unlimited uses.
expires_in: Option<String>Optional expiry, as 30s / 5m / 2h / 7d / 1w, or a
bare integer (seconds).
base_url: StringBase URL used to build the final invite URL. Defaults to an
operator-conventional https://pod.invalid so the CLI is
usable in non-interactive pipelines; production deployments
override this with their public origin.
Trait Implementations§
Source§impl Args for InviteCreateArgs
impl Args for InviteCreateArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for InviteCreateArgs
impl Clone for InviteCreateArgs
Source§fn clone(&self) -> InviteCreateArgs
fn clone(&self) -> InviteCreateArgs
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 moreSource§impl Debug for InviteCreateArgs
impl Debug for InviteCreateArgs
Source§impl FromArgMatches for InviteCreateArgs
impl FromArgMatches for InviteCreateArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for InviteCreateArgs
impl RefUnwindSafe for InviteCreateArgs
impl Send for InviteCreateArgs
impl Sync for InviteCreateArgs
impl Unpin for InviteCreateArgs
impl UnsafeUnpin for InviteCreateArgs
impl UnwindSafe for InviteCreateArgs
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