pub struct CommunityProfile {
pub system_channel_id: Option<ChannelId>,
pub default_slowmode_s: u32,
}Expand description
The host-managed community profile (§8.1 community.update; community.get;
community.updated).
SPEC: “profile” is never defined. §8.1 names only system_channel_id and
default_slowmode_s as host-managed profile fields, so only these are modelled; other
fields a host sends are ignored. Distinct from a member’s profile: {display_name}.
Fields§
§system_channel_id: Option<ChannelId>Where the host posts system notices, if anywhere.
default_slowmode_s: u32Slowmode applied to new channels, 0–21 600 s.
Trait Implementations§
Source§impl Clone for CommunityProfile
impl Clone for CommunityProfile
Source§fn clone(&self) -> CommunityProfile
fn clone(&self) -> CommunityProfile
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 moreimpl Copy for CommunityProfile
Source§impl Debug for CommunityProfile
impl Debug for CommunityProfile
Source§impl<'de> Deserialize<'de> for CommunityProfile
impl<'de> Deserialize<'de> for CommunityProfile
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
impl Eq for CommunityProfile
Source§impl PartialEq for CommunityProfile
impl PartialEq for CommunityProfile
Source§impl Serialize for CommunityProfile
impl Serialize for CommunityProfile
impl StructuralPartialEq for CommunityProfile
Auto Trait Implementations§
impl Freeze for CommunityProfile
impl RefUnwindSafe for CommunityProfile
impl Send for CommunityProfile
impl Sync for CommunityProfile
impl Unpin for CommunityProfile
impl UnsafeUnpin for CommunityProfile
impl UnwindSafe for CommunityProfile
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