Struct twilight_http::request::channel::stage::UpdateStageInstance
source · 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 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 fn topic(self, topic: &'a str) -> Result<Self, ValidationError>
pub fn topic(self, topic: &'a str) -> Result<Self, ValidationError>
Set the new topic of the instance.
Errors
Returns an error of type StageTopic if the length is invalid.
sourcepub fn exec(self) -> ResponseFuture<StageInstance> ⓘ
👎Deprecated since 0.14.0: use .await or into_future instead
pub fn exec(self) -> ResponseFuture<StageInstance> ⓘ
.await or into_future insteadExecute the request, returning a future resolving to a Response.
Trait Implementations§
source§impl IntoFuture for UpdateStageInstance<'_>
impl IntoFuture for UpdateStageInstance<'_>
§type Output = Result<Response<StageInstance>, Error>
type Output = Result<Response<StageInstance>, Error>
The output that the future will produce on completion.
§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