Struct discord::model::Group
[−]
[src]
pub struct Group { pub channel_id: ChannelId, pub icon: Option<String>, pub last_message_id: Option<MessageId>, pub last_pin_timestamp: Option<DateTime<FixedOffset>>, pub name: Option<String>, pub owner_id: UserId, pub recipients: Vec<User>, // some fields omitted }
A group channel, potentially including other users, separate from a server.
Fields
channel_id: ChannelId
icon: Option<String>
last_message_id: Option<MessageId>
last_pin_timestamp: Option<DateTime<FixedOffset>>
name: Option<String>
owner_id: UserId
recipients: Vec<User>
Methods
impl Group
[src]
fn name(&self) -> Cow<str>
Get this group's name, building a default if needed
fn icon_url(&self) -> Option<String>
Returns the formatted URL of the group's icon.
Returns None if the group does not have an icon.
Trait Implementations
impl Debug for Group
[src]
impl Clone for Group
[src]
fn clone(&self) -> Group
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more