pub struct PartialChannel {
pub id: u64,
pub type: u8,
pub name: Option<String>,
pub recipients: Option<Vec<User>>,
pub icon: Option<String>,
pub guild_id: Option<u64>,
}Fields§
§id: u64§type: u8§name: Option<String>§recipients: Option<Vec<User>>§icon: Option<String>§guild_id: Option<u64>Implementations§
Source§impl PartialChannel
impl PartialChannel
pub fn created_at(&self) -> Option<DateTime<Utc>>
Trait Implementations§
Source§impl Clone for PartialChannel
impl Clone for PartialChannel
Source§fn clone(&self) -> PartialChannel
fn clone(&self) -> PartialChannel
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 PartialChannel
impl Debug for PartialChannel
Source§impl Default for PartialChannel
impl Default for PartialChannel
Source§fn default() -> PartialChannel
fn default() -> PartialChannel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartialChannel
impl<'de> Deserialize<'de> for PartialChannel
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 PartialChannel
impl RefUnwindSafe for PartialChannel
impl Send for PartialChannel
impl Sync for PartialChannel
impl Unpin for PartialChannel
impl UnsafeUnpin for PartialChannel
impl UnwindSafe for PartialChannel
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