pub struct StageInstanceBuilder { /* private fields */ }Expand description
Builder for creating a Stage Instance.
Implementations§
Source§impl StageInstanceBuilder
impl StageInstanceBuilder
Sourcepub fn new(channel_id: impl Into<Snowflake>, topic: impl Into<String>) -> Self
pub fn new(channel_id: impl Into<Snowflake>, topic: impl Into<String>) -> Self
Create a new StageInstanceBuilder.
Sourcepub fn privacy_level(self, level: StagePrivacyLevel) -> Self
pub fn privacy_level(self, level: StagePrivacyLevel) -> Self
Set privacy level.
Sourcepub fn send_start_notification(self, send: bool) -> Self
pub fn send_start_notification(self, send: bool) -> Self
Set send start notification.
Sourcepub fn build(self) -> CreateStageInstance
pub fn build(self) -> CreateStageInstance
Build the CreateStageInstance payload.
Trait Implementations§
Source§impl Clone for StageInstanceBuilder
impl Clone for StageInstanceBuilder
Source§fn clone(&self) -> StageInstanceBuilder
fn clone(&self) -> StageInstanceBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for StageInstanceBuilder
impl RefUnwindSafe for StageInstanceBuilder
impl Send for StageInstanceBuilder
impl Sync for StageInstanceBuilder
impl Unpin for StageInstanceBuilder
impl UnwindSafe for StageInstanceBuilder
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