pub struct VerifiedWelcome {
pub version: u16,
pub host_id: HostId,
pub host_public_key: PublicKey,
pub host_challenge: Challenge,
pub capabilities: Vec<String>,
pub limits: Map<String, Value>,
pub binding: Option<Binding>,
pub community: Option<ValidPair>,
pub attachments: Option<HostAttachments>,
}Expand description
A welcome that passed every check. Everything in it comes from verified signed objects or was compared with them.
Fields§
§version: u16The negotiated version.
host_id: HostIdThe host’s id (derives from host_public_key).
host_public_key: PublicKeyThe host’s key, as pinned by the configuration.
host_challenge: ChallengeThe challenge to sign into a MemberKeyRegistration (§4.4), from the decoded proof.
capabilities: Vec<String>Capabilities both sides support.
limits: Map<String, Value>Effective limits (§12); the keys are not defined by the specification.
binding: Option<Binding>The connection’s binding, if bound.
community: Option<ValidPair>The verified descriptor and delegation, when a community was named. Persist
ValidPair::state for anti-rollback (§4.3 rule 5).
attachments: Option<HostAttachments>What the host accepts as attachments; None when it takes none.
Trait Implementations§
Source§impl Clone for VerifiedWelcome
impl Clone for VerifiedWelcome
Source§fn clone(&self) -> VerifiedWelcome
fn clone(&self) -> VerifiedWelcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VerifiedWelcome
impl RefUnwindSafe for VerifiedWelcome
impl Send for VerifiedWelcome
impl Sync for VerifiedWelcome
impl Unpin for VerifiedWelcome
impl UnsafeUnpin for VerifiedWelcome
impl UnwindSafe for VerifiedWelcome
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