Enum discord::ChannelRef [] [src]

pub enum ChannelRef<'a> {
    Private(&'a PrivateChannel),
    Public(&'a LiveServer, &'a PublicChannel),
}

A reference to a private or public channel

Variants

Private

A private channel

Public

A public channel and its server

Trait Implementations

Derived Implementations

impl<'a> Copy for ChannelRef<'a>
[src]

impl<'a> Clone for ChannelRef<'a>
[src]

fn clone(&self) -> ChannelRef<'a>

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

impl<'a> Debug for ChannelRef<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.