pub struct InviteParams {
pub services: Vec<String>,
pub app_label: Option<String>,
}Expand description
Params of Request::Invite: the services the minted invite grants. Rejects unknown
fields (so {service: "kb"} — a singular typo — is a loud error, not a silently
grants-nothing invite), and the daemon additionally rejects an empty/absent services
list (an invite that grants nothing is useless — #34).
Fields§
§services: Vec<String>§app_label: Option<String>An OPAQUE, caller-chosen label carried through to the redeemer in the pair result (#31).
mcpmesh never interprets it (not a nickname, never resolved or authorized) — a per-pairing
metadata slot for the embedder (e.g. its own URN). Capped at the daemon; omit for none.
Trait Implementations§
Source§impl Clone for InviteParams
impl Clone for InviteParams
Source§fn clone(&self) -> InviteParams
fn clone(&self) -> InviteParams
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 moreSource§impl Debug for InviteParams
impl Debug for InviteParams
Source§impl<'de> Deserialize<'de> for InviteParams
impl<'de> Deserialize<'de> for InviteParams
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 Eq for InviteParams
Source§impl PartialEq for InviteParams
impl PartialEq for InviteParams
Source§impl Serialize for InviteParams
impl Serialize for InviteParams
impl StructuralPartialEq for InviteParams
Auto Trait Implementations§
impl Freeze for InviteParams
impl RefUnwindSafe for InviteParams
impl Send for InviteParams
impl Sync for InviteParams
impl Unpin for InviteParams
impl UnsafeUnpin for InviteParams
impl UnwindSafe for InviteParams
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