pub struct CreateStageInstance<'a> { /* private fields */ }
Expand description
Builder for creating a stage instance
Implementations§
Source§impl<'a> CreateStageInstance<'a>
impl<'a> CreateStageInstance<'a>
Sourcepub fn topic(self, topic: impl Into<String>) -> Self
pub fn topic(self, topic: impl Into<String>) -> Self
Sets the topic of the stage channel instance, replacing the current value as set in
Self::new
.
Sourcepub fn send_start_notification(self, send_start_notification: bool) -> Self
pub fn send_start_notification(self, send_start_notification: bool) -> Self
Whether or not to notify @everyone that a stage instance has started.
Sourcepub fn audit_log_reason(self, reason: &'a str) -> Self
pub fn audit_log_reason(self, reason: &'a str) -> Self
Sets the request’s audit log reason.
Trait Implementations§
Source§impl Builder for CreateStageInstance<'_>
impl Builder for CreateStageInstance<'_>
Source§fn execute<'life0, 'async_trait>(
self,
cache_http: impl 'async_trait + CacheHttp,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<StageInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
self,
cache_http: impl 'async_trait + CacheHttp,
ctx: Self::Context<'life0>,
) -> Pin<Box<dyn Future<Output = Result<StageInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates the stage instance.
§Errors
Returns Error::Http
if there is already a stage instance currently.
Source§type Context<'ctx> = ChannelId
type Context<'ctx> = ChannelId
Additional data that’s only required when sending a request off to the API.
type Built = StageInstance
Source§impl<'a> Clone for CreateStageInstance<'a>
impl<'a> Clone for CreateStageInstance<'a>
Source§fn clone(&self) -> CreateStageInstance<'a>
fn clone(&self) -> CreateStageInstance<'a>
Returns a copy 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<'a> Debug for CreateStageInstance<'a>
impl<'a> Debug for CreateStageInstance<'a>
Auto Trait Implementations§
impl<'a> Freeze for CreateStageInstance<'a>
impl<'a> RefUnwindSafe for CreateStageInstance<'a>
impl<'a> Send for CreateStageInstance<'a>
impl<'a> Sync for CreateStageInstance<'a>
impl<'a> Unpin for CreateStageInstance<'a>
impl<'a> UnwindSafe for CreateStageInstance<'a>
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