pub enum ActionTarget {
Server,
Channel(ChannelKey),
User(Occupant),
}Expand description
What a context action was invoked on.
In the flavor’s own vocabulary rather than the wire’s: a key for a channel,
an occupant for a user, exactly like VoiceEvent::RequestedChannel.
Variants§
Server
Nothing was selected: the action was invoked on the server itself.
Channel(ChannelKey)
User(Occupant)
Trait Implementations§
Source§impl Clone for ActionTarget
impl Clone for ActionTarget
Source§fn clone(&self) -> ActionTarget
fn clone(&self) -> ActionTarget
Returns a duplicate of the value. Read more
1.0.0 · 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 ActionTarget
impl Debug for ActionTarget
Source§impl PartialEq for ActionTarget
impl PartialEq for ActionTarget
impl Copy for ActionTarget
impl Eq for ActionTarget
impl StructuralPartialEq for ActionTarget
Auto Trait Implementations§
impl Freeze for ActionTarget
impl RefUnwindSafe for ActionTarget
impl Send for ActionTarget
impl Sync for ActionTarget
impl Unpin for ActionTarget
impl UnwindSafe for ActionTarget
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