[−][src]Struct spectacles_model::guild::CreateGuildOptions
Options for creating a Discord guild.
Methods
impl CreateGuildOptions
[src]
pub fn name(self, name: &str) -> Self
[src]
Sets the name that the new guild should have. This field is required.
pub fn voice_region(self, region: &str) -> Self
[src]
Sets the voice region name for the new guild.
pub fn icon(self, icon: String) -> Self
[src]
Sets the icon URL for the new guild. Must be base64 encoded.
pub fn verification_level(self, lvl: VerificationLevel) -> Self
[src]
Sets the verification level for the guild.
pub fn default_message_notifications(
self,
notifs: DefaultMessageNotifications
) -> Self
[src]
self,
notifs: DefaultMessageNotifications
) -> Self
Sets the default message notifications level for the new guild.
pub fn explicit_content_filter(self, filter: ExplicitContentFilter) -> Self
[src]
Sets the explicit content filter for the new guild.
Trait Implementations
impl Clone for CreateGuildOptions
[src]
fn clone(&self) -> CreateGuildOptions
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for CreateGuildOptions
[src]
fn default() -> CreateGuildOptions
[src]
impl Debug for CreateGuildOptions
[src]
impl Serialize for CreateGuildOptions
[src]
Auto Trait Implementations
impl Send for CreateGuildOptions
impl Sync for CreateGuildOptions
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,