pub struct ChannelOneOf2 {
pub channel_type: ChannelType,
pub _id: String,
pub name: String,
pub owner: String,
pub description: Option<Option<String>>,
pub recipients: Vec<String>,
pub icon: Option<Option<Box<ChannelOneOf2Icon>>>,
pub last_message_id: Option<Option<String>>,
pub permissions: Option<Option<i64>>,
pub nsfw: Option<bool>,
}Expand description
ChannelOneOf2 : Group channel between 1 or more participants
Fields§
§channel_type: ChannelType§_id: StringUnique Id
name: StringDisplay name of the channel
owner: StringUser id of the owner of the group
description: Option<Option<String>>Channel description
recipients: Vec<String>Array of user ids participating in channel
icon: Option<Option<Box<ChannelOneOf2Icon>>>§last_message_id: Option<Option<String>>Id of the last message sent in this channel
permissions: Option<Option<i64>>Permissions assigned to members of this group (does not apply to the owner of the group)
nsfw: Option<bool>Whether this group is marked as not safe for work
Implementations§
Source§impl ChannelOneOf2
impl ChannelOneOf2
Sourcepub fn new(
channel_type: ChannelType,
_id: String,
name: String,
owner: String,
recipients: Vec<String>,
) -> ChannelOneOf2
pub fn new( channel_type: ChannelType, _id: String, name: String, owner: String, recipients: Vec<String>, ) -> ChannelOneOf2
Group channel between 1 or more participants
Trait Implementations§
Source§impl Clone for ChannelOneOf2
impl Clone for ChannelOneOf2
Source§fn clone(&self) -> ChannelOneOf2
fn clone(&self) -> ChannelOneOf2
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 ChannelOneOf2
impl Debug for ChannelOneOf2
Source§impl Default for ChannelOneOf2
impl Default for ChannelOneOf2
Source§fn default() -> ChannelOneOf2
fn default() -> ChannelOneOf2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelOneOf2
impl<'de> Deserialize<'de> for ChannelOneOf2
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
Source§impl PartialEq for ChannelOneOf2
impl PartialEq for ChannelOneOf2
Source§fn eq(&self, other: &ChannelOneOf2) -> bool
fn eq(&self, other: &ChannelOneOf2) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ChannelOneOf2
impl Serialize for ChannelOneOf2
impl StructuralPartialEq for ChannelOneOf2
Auto Trait Implementations§
impl Freeze for ChannelOneOf2
impl RefUnwindSafe for ChannelOneOf2
impl Send for ChannelOneOf2
impl Sync for ChannelOneOf2
impl Unpin for ChannelOneOf2
impl UnsafeUnpin for ChannelOneOf2
impl UnwindSafe for ChannelOneOf2
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