pub struct RemoveOptions {
pub member: DidNostr,
pub operation_id: Option<String>,
pub confirmation: Confirmation,
pub require_archive: bool,
}Expand description
Options for Session::member_remove.
§Examples
use stratum_node_cli::{Confirmation, RemoveOptions};
// `stratum member remove <did> --no-archive --yes`: a recorded waiver.
let options = RemoveOptions {
member: "did:nostr:79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798".parse()?,
operation_id: Some("rm-2026-12-04".to_owned()),
confirmation: Confirmation::Assumed,
require_archive: false,
};
assert!(!options.require_archive);Fields§
§member: DidNostrThe member to remove (<did>).
operation_id: Option<String>The operation ID; random when None.
confirmation: ConfirmationWhether to ask first.
require_archive: boolWhether the node must hold an archive taken during the member’s
current suspension (true unless --no-archive). false is a
recorded waiver.
Trait Implementations§
Source§impl Clone for RemoveOptions
impl Clone for RemoveOptions
Auto Trait Implementations§
impl Forget for RemoveOptions
impl Freeze for RemoveOptions
impl Move for RemoveOptions
impl RefUnwindSafe for RemoveOptions
impl Send for RemoveOptionswhere
RawVecInner: Send,
impl Sync for RemoveOptionswhere
RawVecInner: Sync,
impl Unpin for RemoveOptions
impl UnsafeUnpin for RemoveOptions
impl UnwindSafe for RemoveOptionswhere
RawVecInner: UnwindSafe,
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