pub struct UpdateStageInstance<'a> { /* private fields */ }
Expand description
Update fields of an existing stage instance.
Requires the user to be a moderator of the stage channel.
Implementations§
source§impl<'a> UpdateStageInstance<'a>
impl<'a> UpdateStageInstance<'a>
sourcepub fn privacy_level(self, privacy_level: PrivacyLevel) -> Self
pub fn privacy_level(self, privacy_level: PrivacyLevel) -> Self
Set the PrivacyLevel
of the instance.
sourcepub fn topic(self, topic: &'a str) -> Self
pub fn topic(self, topic: &'a str) -> Self
Set the new topic of the instance.
§Errors
Returns an error of type StageTopic
if the length is invalid.
Trait Implementations§
source§impl IntoFuture for UpdateStageInstance<'_>
impl IntoFuture for UpdateStageInstance<'_>
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 UpdateStageInstance<'_>
impl TryIntoRequest for UpdateStageInstance<'_>
Auto Trait Implementations§
impl<'a> Freeze for UpdateStageInstance<'a>
impl<'a> !RefUnwindSafe for UpdateStageInstance<'a>
impl<'a> Send for UpdateStageInstance<'a>
impl<'a> Sync for UpdateStageInstance<'a>
impl<'a> Unpin for UpdateStageInstance<'a>
impl<'a> !UnwindSafe for UpdateStageInstance<'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