Struct discord_flows::model::Team
source · pub struct Team {
pub icon: Option<String>,
pub id: u64,
pub name: String,
pub members: Vec<TeamMember, Global>,
pub owner_user_id: UserId,
}
Expand description
Information about the Team group of the application.
Fields§
§icon: Option<String>
The icon of the team.
id: u64
The snowflake ID of the team.
name: String
The name of the team.
members: Vec<TeamMember, Global>
The members of the team
owner_user_id: UserId
The user id of the team owner.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Team
impl<'de> Deserialize<'de> for Team
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Team, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Team, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Team
impl Serialize for Team
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Team
impl Send for Team
impl Sync for Team
impl Unpin for Team
impl UnwindSafe for Team
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