Trait twilight_http::request::AuditLogReason
source · pub trait AuditLogReason<'a>: Sealed {
// Required method
fn reason(self, reason: &'a str) -> Result<Self, ValidationError>
where Self: Sized;
}
Expand description
Attach a reason for a request.
Reasons are associated with the audit log entries that are automatically created for certain requests.
Required Methods§
sourcefn reason(self, reason: &'a str) -> Result<Self, ValidationError>where
Self: Sized,
fn reason(self, reason: &'a str) -> Result<Self, ValidationError>where Self: Sized,
Attach an audit log reason to the request.
Errors
Returns an error of type AuditReason
if the length is invalid.