pub struct CreateStageInstance<'a> { /* private fields */ }Expand description
Create a new stage instance associated with a stage channel.
Requires the user to be a moderator of the stage channel.
Implementations§
Source§impl<'a> CreateStageInstance<'a>
impl<'a> CreateStageInstance<'a>
Sourcepub const fn guild_scheduled_event_id(
self,
guild_scheduled_event_id: Id<ScheduledEventMarker>,
) -> Self
pub const fn guild_scheduled_event_id( self, guild_scheduled_event_id: Id<ScheduledEventMarker>, ) -> Self
Set the guild scheduled event associated with this stage instance.
Sourcepub const fn privacy_level(self, privacy_level: PrivacyLevel) -> Self
pub const fn privacy_level(self, privacy_level: PrivacyLevel) -> Self
Set the PrivacyLevel of the instance.
Sourcepub const fn send_start_notification(
self,
send_start_notification: bool,
) -> Self
pub const fn send_start_notification( self, send_start_notification: bool, ) -> Self
Set whether to notify everyone when a stage starts.
The stage moderator must have Permissions::MENTION_EVERYONE for this
notification to be sent.
Trait Implementations§
Source§impl<'a> AuditLogReason<'a> for CreateStageInstance<'a>
impl<'a> AuditLogReason<'a> for CreateStageInstance<'a>
Source§impl IntoFuture for CreateStageInstance<'_>
impl IntoFuture for CreateStageInstance<'_>
Source§type Output = Result<Response<StageInstance>, Error>
type Output = Result<Response<StageInstance>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<StageInstance>
type IntoFuture = ResponseFuture<StageInstance>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Source§impl TryIntoRequest for CreateStageInstance<'_>
impl TryIntoRequest for CreateStageInstance<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CreateStageInstance<'a>
impl<'a> !UnwindSafe for CreateStageInstance<'a>
impl<'a> Forget for CreateStageInstance<'a>
impl<'a> Freeze for CreateStageInstance<'a>where
PhantomData<fn(ChannelMarker) -> ChannelMarker>: Freeze,
NonZero<u64>: Freeze,
PhantomData<fn(ScheduledEventMarker) -> ScheduledEventMarker>: Freeze,
&'a str: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
&'static str: Freeze,
&'a Client: Freeze,
impl<'a> Move for CreateStageInstance<'a>
impl<'a> Send for CreateStageInstance<'a>
impl<'a> Sync for CreateStageInstance<'a>where
NonZero<u64>: Sync,
RawVecInner: Sync,
NonZero<i32>: Sync,
BoxRaw<[Pos]>: Sync,
Bytes: Sync,
Arc<Config>: Sync,
Arc<Resolver<GenericConnector<TokioRuntimeProvider>>>: Sync,
Arc<ClientConfig>: Sync,
Arc<dyn ResolveServerName + Send + Sync>: Sync,
Arc<dyn Executor<Pin<Box<dyn Future<Output = ()> + Send>>> + Send + Sync>: Sync,
Arc<dyn Timer + Send + Sync>: Sync,
Arc<Mutex<PoolInner<PoolClient<Full<Bytes>>, (Scheme, Authority)>>>: Sync,
BoxRaw<str>: Sync,
Arc<Chan<(Message, Option<Box<dyn FnOnce(Option<Bucket>) -> bool + Send>>), Semaphore>>: Sync,
Arc<Atomic<bool>>: Sync,
impl<'a> Unpin for CreateStageInstance<'a>
impl<'a> UnsafeUnpin for CreateStageInstance<'a>where
PhantomData<fn(ChannelMarker) -> ChannelMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<fn(ScheduledEventMarker) -> ScheduledEventMarker>: UnsafeUnpin,
&'a str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
&'a Client: UnsafeUnpin,
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