pub enum IdentityConflictPolicy {
Error,
ReuseExisting,
ForceNew,
}Expand description
Policy for handling an existing identity during developer setup.
Replaces interactive CLI prompts with a typed enum that headless consumers can set programmatically.
Usage:
ⓘ
let config = DeveloperSetupConfig::builder("my-key")
.with_conflict_policy(IdentityConflictPolicy::ReuseExisting)
.build();Variants§
Error
Return an error if an identity already exists (default).
ReuseExisting
Reuse the existing identity silently.
ForceNew
Overwrite the existing identity with a new one.
Trait Implementations§
Source§impl Clone for IdentityConflictPolicy
impl Clone for IdentityConflictPolicy
Source§fn clone(&self) -> IdentityConflictPolicy
fn clone(&self) -> IdentityConflictPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 IdentityConflictPolicy
impl Debug for IdentityConflictPolicy
Source§impl Default for IdentityConflictPolicy
impl Default for IdentityConflictPolicy
Source§fn default() -> IdentityConflictPolicy
fn default() -> IdentityConflictPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdentityConflictPolicy
impl RefUnwindSafe for IdentityConflictPolicy
impl Send for IdentityConflictPolicy
impl Sync for IdentityConflictPolicy
impl Unpin for IdentityConflictPolicy
impl UnsafeUnpin for IdentityConflictPolicy
impl UnwindSafe for IdentityConflictPolicy
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