pub struct GetGuildAutoModerationRules<'a> { /* private fields */ }Expand description
Get an auto moderation rule in a guild.
Requires the MANAGE_GUILD permission.
Implementations§
source§impl<'a> GetGuildAutoModerationRules<'a>
impl<'a> GetGuildAutoModerationRules<'a>
sourcepub fn exec(self) -> ResponseFuture<ListBody<AutoModerationRule>> ⓘ
👎Deprecated since 0.14.0: use .await or into_future instead
pub fn exec(self) -> ResponseFuture<ListBody<AutoModerationRule>> ⓘ
.await or into_future insteadExecute the request, returning a future resolving to a Response.
Trait Implementations§
source§impl IntoFuture for GetGuildAutoModerationRules<'_>
impl IntoFuture for GetGuildAutoModerationRules<'_>
§type Output = Result<Response<ListBody<AutoModerationRule>>, Error>
type Output = Result<Response<ListBody<AutoModerationRule>>, Error>
The output that the future will produce on completion.
§type IntoFuture = ResponseFuture<ListBody<AutoModerationRule>>
type IntoFuture = ResponseFuture<ListBody<AutoModerationRule>>
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