Struct revolute::models::channel_one_of_2::ChannelOneOf2
source · [−]pub struct ChannelOneOf2 {
pub channel_type: ChannelType,
pub _id: String,
pub name: String,
pub owner: String,
pub description: Option<String>,
pub recipients: Vec<String, Global>,
pub icon: Option<Box<File, Global>>,
pub last_message_id: Option<String>,
pub permissions: 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<String>Channel description
recipients: Vec<String, Global>Array of user ids participating in channel
icon: Option<Box<File, Global>>Custom icon attachment
last_message_id: Option<String>Id of the last message sent in this channel
permissions: 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
sourceimpl ChannelOneOf2
impl ChannelOneOf2
sourcepub fn new(
channel_type: ChannelType,
_id: String,
name: String,
owner: String,
recipients: Vec<String, Global>
) -> ChannelOneOf2
pub fn new(
channel_type: ChannelType,
_id: String,
name: String,
owner: String,
recipients: Vec<String, Global>
) -> ChannelOneOf2
Group channel between 1 or more participants
Trait Implementations
sourceimpl Clone for ChannelOneOf2
impl Clone for ChannelOneOf2
sourcefn clone(&self) -> ChannelOneOf2
fn clone(&self) -> ChannelOneOf2
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ChannelOneOf2
impl Debug for ChannelOneOf2
sourceimpl Default for ChannelOneOf2
impl Default for ChannelOneOf2
sourcefn default() -> ChannelOneOf2
fn default() -> ChannelOneOf2
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ChannelOneOf2
impl<'de> Deserialize<'de> for ChannelOneOf2
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ChannelOneOf2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ChannelOneOf2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ChannelOneOf2> for ChannelOneOf2
impl PartialEq<ChannelOneOf2> for ChannelOneOf2
sourcefn eq(&self, other: &ChannelOneOf2) -> bool
fn eq(&self, other: &ChannelOneOf2) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for ChannelOneOf2
impl Serialize for ChannelOneOf2
sourcefn 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
impl StructuralPartialEq for ChannelOneOf2
Auto Trait Implementations
impl RefUnwindSafe for ChannelOneOf2
impl Send for ChannelOneOf2
impl Sync for ChannelOneOf2
impl Unpin for ChannelOneOf2
impl UnwindSafe for ChannelOneOf2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more