pub struct NamedGroup {
pub id: String,
pub name: String,
pub icon: Option<String>,
pub member_count: u32,
pub admins: Option<Vec<String>>,
pub direct_count: Option<u32>,
pub balance: Option<f64>,
pub credit: Option<f64>,
pub debt: Option<f64>,
}Expand description
A group query found by its name. A signed in admin also sees its admins’
emails, how many people are directly in it, and its paid balance, credit and
debt in dollars; everyone else gets none of those.
Fields§
§id: String§name: String§icon: Option<String>§member_count: u32Everyone in it, directly or through a nested group.
admins: Option<Vec<String>>§direct_count: Option<u32>§balance: Option<f64>§credit: Option<f64>§debt: Option<f64>Implementations§
Source§impl NamedGroup
impl NamedGroup
pub fn from_json(json: &Value) -> NamedGroup
Trait Implementations§
Source§impl Clone for NamedGroup
impl Clone for NamedGroup
Source§impl Debug for NamedGroup
impl Debug for NamedGroup
Source§impl<'de> Deserialize<'de> for NamedGroup
impl<'de> Deserialize<'de> for NamedGroup
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 NamedGroup
impl Freeze for NamedGroup
impl RefUnwindSafe for NamedGroup
impl Send for NamedGroup
impl Sync for NamedGroup
impl Unpin for NamedGroup
impl UnsafeUnpin for NamedGroup
impl UnwindSafe for NamedGroup
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