pub struct OwnershipUnlockParams {
pub mode: Option<UnlockMode>,
pub nonce: Option<u64>,
pub next_owner: Option<PathBuf>,
pub signature: Option<PathBuf>,
pub sign: Option<PathBuf>,
}
Fields§
§mode: Option<UnlockMode>
§nonce: Option<u64>
§next_owner: Option<PathBuf>
§signature: Option<PathBuf>
§sign: Option<PathBuf>
Implementations§
Source§impl OwnershipUnlockParams
impl OwnershipUnlockParams
Sourcepub fn apply(&self, unlock: &mut OwnershipUnlockRequest) -> Result<()>
pub fn apply(&self, unlock: &mut OwnershipUnlockRequest) -> Result<()>
Applies the parameters to the unlock request.
Trait Implementations§
Source§impl Args for OwnershipUnlockParams
impl Args for OwnershipUnlockParams
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentsSource§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 Debug for OwnershipUnlockParams
impl Debug for OwnershipUnlockParams
Source§impl Default for OwnershipUnlockParams
impl Default for OwnershipUnlockParams
Source§fn default() -> OwnershipUnlockParams
fn default() -> OwnershipUnlockParams
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for OwnershipUnlockParams
impl FromArgMatches for OwnershipUnlockParams
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 OwnershipUnlockParams
impl RefUnwindSafe for OwnershipUnlockParams
impl Send for OwnershipUnlockParams
impl Sync for OwnershipUnlockParams
impl Unpin for OwnershipUnlockParams
impl UnwindSafe for OwnershipUnlockParams
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