pub struct SuspendOptions {
pub member: DidNostr,
pub operation_id: Option<String>,
pub confirmation: Confirmation,
pub wait: Option<Duration>,
}Expand description
Options for Session::member_suspend.
§Examples
use std::time::Duration;
use stratum_node_cli::{Confirmation, SuspendOptions, DEFAULT_ENFORCEMENT_WAIT};
let options = SuspendOptions {
member: "did:nostr:79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798".parse()?,
operation_id: None,
confirmation: Confirmation::Assumed,
wait: Some(DEFAULT_ENFORCEMENT_WAIT),
};
assert_eq!(options.wait, Some(Duration::from_secs(330)));Fields§
§member: DidNostrThe member to suspend (<did>).
operation_id: Option<String>The operation ID; random when None.
confirmation: ConfirmationWhether to ask first.
wait: Option<Duration>--wait [seconds]: after suspending, read the member until its
suspension is enforced, for at most this long. None returns at
once.
Trait Implementations§
Source§impl Clone for SuspendOptions
impl Clone for SuspendOptions
Auto Trait Implementations§
impl Forget for SuspendOptions
impl Freeze for SuspendOptions
impl Move for SuspendOptions
impl RefUnwindSafe for SuspendOptions
impl Send for SuspendOptionswhere
RawVecInner: Send,
impl Sync for SuspendOptionswhere
RawVecInner: Sync,
impl Unpin for SuspendOptions
impl UnsafeUnpin for SuspendOptions
impl UnwindSafe for SuspendOptionswhere
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