pub struct InviteOptions {
pub subject: DidNostr,
pub expires_in: Option<Duration>,
pub operation_id: Option<String>,
pub expect_node: Option<DidNostr>,
pub gate: Option<ConnectAddress>,
}Expand description
Options for Session::invite_create.
Fields§
§subject: DidNostrThe identity invited (<did>).
expires_in: Option<Duration>The invitation’s lifetime (--expires-in); the node’s
membership.invitation_ttl_secs when None.
operation_id: Option<String>The operation ID; random when None.
expect_node: Option<DidNostr>Refuse unless /readyz reports this node DID (--expect-node).
gate: Option<ConnectAddress>The gate address the invitee should connect to, printed in the
stratum join command line (--connect); 127.0.0.1:7461 when None.
Not used when the canonical origin is itself a loopback http://
address.
Trait Implementations§
Source§impl Clone for InviteOptions
impl Clone for InviteOptions
Auto Trait Implementations§
impl Forget for InviteOptions
impl Freeze for InviteOptions
impl Move for InviteOptions
impl RefUnwindSafe for InviteOptions
impl Send for InviteOptionswhere
RawVecInner: Send,
impl Sync for InviteOptionswhere
RawVecInner: Sync,
impl Unpin for InviteOptions
impl UnsafeUnpin for InviteOptions
impl UnwindSafe for InviteOptionswhere
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