pub struct ProfileInitOptions {
pub replace: bool,
}Expand description
Options for Session::profile_init.
§Examples
use stratum_node_cli::ProfileInitOptions;
// `stratum profile init`: report a card that does not name the owner.
assert!(!ProfileInitOptions::default().replace);
// `stratum profile init --replace`.
let replace = ProfileInitOptions { replace: true };
assert!(replace.replace);Fields§
§replace: bool--replace: replace an existing card that does not name the owner,
conditionally on the version read, instead of reporting the
conflict.
Trait Implementations§
Source§impl Clone for ProfileInitOptions
impl Clone for ProfileInitOptions
impl Copy for ProfileInitOptions
Source§impl Debug for ProfileInitOptions
impl Debug for ProfileInitOptions
Auto Trait Implementations§
impl Forget for ProfileInitOptions
impl Freeze for ProfileInitOptions
impl Move for ProfileInitOptions
impl RefUnwindSafe for ProfileInitOptions
impl Send for ProfileInitOptions
impl Sync for ProfileInitOptions
impl Unpin for ProfileInitOptions
impl UnsafeUnpin for ProfileInitOptions
impl UnwindSafe for ProfileInitOptions
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