pub struct OrgApproveParams {
pub join_code: String,
pub groups: Vec<String>,
pub user_id: Option<String>,
}Expand description
Params of Request::OrgApprove (#66).
Fields§
§join_code: StringThe mcpmesh-join: code the joiner sent.
groups: Vec<String>The groups to grant. Each must be DECLARED in the roster (see
RosterMembersResult::groups) — an undeclared one is refused, because it would make an
allow entry naming it ambiguous.
user_id: Option<String>Override the user_id the joiner requested. Omit to accept theirs.
Worth using: the requested id is chosen by the person being approved, and it is the string
every allow entry will name.
Trait Implementations§
Source§impl Clone for OrgApproveParams
impl Clone for OrgApproveParams
Source§fn clone(&self) -> OrgApproveParams
fn clone(&self) -> OrgApproveParams
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 OrgApproveParams
impl Debug for OrgApproveParams
Source§impl<'de> Deserialize<'de> for OrgApproveParams
impl<'de> Deserialize<'de> for OrgApproveParams
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 OrgApproveParams
Source§impl PartialEq for OrgApproveParams
impl PartialEq for OrgApproveParams
Source§impl Serialize for OrgApproveParams
impl Serialize for OrgApproveParams
impl StructuralPartialEq for OrgApproveParams
Auto Trait Implementations§
impl Freeze for OrgApproveParams
impl RefUnwindSafe for OrgApproveParams
impl Send for OrgApproveParams
impl Sync for OrgApproveParams
impl Unpin for OrgApproveParams
impl UnsafeUnpin for OrgApproveParams
impl UnwindSafe for OrgApproveParams
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