pub struct Welcome {
pub version: u16,
pub host_public_key: PublicKey,
pub host_id: HostId,
pub host_challenge: Challenge,
pub proof: SignedJson,
pub capabilities: Vec<String>,
pub limits: Map<String, Value>,
pub binding: Option<Binding>,
pub descriptor: Option<SignedJson>,
pub delegation: Option<SignedJson>,
pub attachments: Option<HostAttachments>,
}Expand description
session.welcome (§6.2).
Fields§
§version: u16The negotiated version.
host_public_key: PublicKeyThe host key; host_id derives from it.
host_id: HostIdThe host id.
host_challenge: ChallengeFresh; valid until the next hello or 10 minutes.
proof: SignedJsonSigned HostSessionProof (§4.5).
capabilities: Vec<String>Intersection of both sides’ capabilities.
limits: Map<String, Value>Effective limits (§12) the client MUST respect.
SPEC: the key names are never defined; kept as an opaque object.
binding: Option<Binding>The connection’s binding, if bound.
descriptor: Option<SignedJson>The bound or requested community’s signed descriptor; null also when it has the
hello’s held_descriptor hash (the client uses its own).
delegation: Option<SignedJson>Its signed delegation.
attachments: Option<HostAttachments>What the host accepts as attachments (§8.5); absent when it takes none.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Welcome
impl<'de> Deserialize<'de> for Welcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Welcome
Auto Trait Implementations§
impl Freeze for Welcome
impl RefUnwindSafe for Welcome
impl Send for Welcome
impl Sync for Welcome
impl Unpin for Welcome
impl UnsafeUnpin for Welcome
impl UnwindSafe for Welcome
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