Struct revolute::models::ChannelOneOf3
source · [−]pub struct ChannelOneOf3 {
pub channel_type: ChannelType,
pub _id: String,
pub server: String,
pub name: String,
pub description: Option<String>,
pub icon: Option<Box<File, Global>>,
pub last_message_id: Option<String>,
pub default_permissions: Option<Box<OverrideField, Global>>,
pub role_permissions: Option<HashMap<String, OverrideField, RandomState>>,
pub nsfw: Option<bool>,
}Expand description
ChannelOneOf3 : Text channel belonging to a server
Fields
channel_type: ChannelType_id: StringUnique Id
server: StringId of the server this channel belongs to
name: StringDisplay name of the channel
description: Option<String>Channel description
icon: Option<Box<File, Global>>Custom icon attachment
last_message_id: Option<String>Id of the last message sent in this channel
default_permissions: Option<Box<OverrideField, Global>>Default permissions assigned to users in this channel
role_permissions: Option<HashMap<String, OverrideField, RandomState>>Permissions assigned based on role to this channel
nsfw: Option<bool>Whether this channel is marked as not safe for work
Implementations
sourceimpl ChannelOneOf3
impl ChannelOneOf3
sourcepub fn new(
channel_type: ChannelType,
_id: String,
server: String,
name: String
) -> ChannelOneOf3
pub fn new(
channel_type: ChannelType,
_id: String,
server: String,
name: String
) -> ChannelOneOf3
Text channel belonging to a server
Trait Implementations
sourceimpl Clone for ChannelOneOf3
impl Clone for ChannelOneOf3
sourcefn clone(&self) -> ChannelOneOf3
fn clone(&self) -> ChannelOneOf3
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 ChannelOneOf3
impl Debug for ChannelOneOf3
sourceimpl Default for ChannelOneOf3
impl Default for ChannelOneOf3
sourcefn default() -> ChannelOneOf3
fn default() -> ChannelOneOf3
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ChannelOneOf3
impl<'de> Deserialize<'de> for ChannelOneOf3
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ChannelOneOf3, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ChannelOneOf3, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ChannelOneOf3> for ChannelOneOf3
impl PartialEq<ChannelOneOf3> for ChannelOneOf3
sourcefn eq(&self, other: &ChannelOneOf3) -> bool
fn eq(&self, other: &ChannelOneOf3) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for ChannelOneOf3
impl Serialize for ChannelOneOf3
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 ChannelOneOf3
Auto Trait Implementations
impl RefUnwindSafe for ChannelOneOf3
impl Send for ChannelOneOf3
impl Sync for ChannelOneOf3
impl Unpin for ChannelOneOf3
impl UnwindSafe for ChannelOneOf3
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