pub struct GatewayApplication {
pub id: u64,
/* private fields */
}Fields§
§id: u64Implementations§
Source§impl GatewayApplication
impl GatewayApplication
pub fn created_at(&self) -> Option<DateTime<Utc>>
Source§impl GatewayApplication
impl GatewayApplication
pub fn get_flags(&self) -> Vec<GatewayApplicationFlags>
pub fn set_flags(&mut self, flags: Vec<GatewayApplicationFlags>)
pub fn has_flags(&self, flag: GatewayApplicationFlags) -> bool
pub fn add_flags(&mut self, flag: GatewayApplicationFlags)
pub fn remove_flags(&mut self, flag: GatewayApplicationFlags)
Trait Implementations§
Source§impl Clone for GatewayApplication
impl Clone for GatewayApplication
Source§fn clone(&self) -> GatewayApplication
fn clone(&self) -> GatewayApplication
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 GatewayApplication
impl Debug for GatewayApplication
Source§impl<'de> Deserialize<'de> for GatewayApplication
impl<'de> Deserialize<'de> for GatewayApplication
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
Auto Trait Implementations§
impl Freeze for GatewayApplication
impl RefUnwindSafe for GatewayApplication
impl Send for GatewayApplication
impl Sync for GatewayApplication
impl Unpin for GatewayApplication
impl UnsafeUnpin for GatewayApplication
impl UnwindSafe for GatewayApplication
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