pub struct MatchedGroup {
pub id: String,
pub name: String,
pub icon: Option<String>,
pub member_count: u32,
pub through: String,
}Expand description
A group a person found by query is in, and how: through is the group’s own
id when they are directly in it, else the nested group they come in through.
Fields§
§id: String§name: String§icon: Option<String>§member_count: u32§through: StringImplementations§
Source§impl MatchedGroup
impl MatchedGroup
pub fn from_json(json: &Value) -> MatchedGroup
Trait Implementations§
Source§impl Clone for MatchedGroup
impl Clone for MatchedGroup
Source§impl Debug for MatchedGroup
impl Debug for MatchedGroup
Source§impl<'de> Deserialize<'de> for MatchedGroup
impl<'de> Deserialize<'de> for MatchedGroup
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
Auto Trait Implementations§
impl Forget for MatchedGroup
impl Freeze for MatchedGroup
impl RefUnwindSafe for MatchedGroup
impl Send for MatchedGroup
impl Sync for MatchedGroup
impl Unpin for MatchedGroup
impl UnsafeUnpin for MatchedGroup
impl UnwindSafe for MatchedGroup
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