Struct slack_morphism::errors::SlackRateLimitError
source · [−]pub struct SlackRateLimitError {
pub retry_after: Option<Duration>,
pub code: Option<String>,
pub warnings: Option<Vec<String>>,
pub http_response_body: Option<String>,
}Fields
retry_after: Option<Duration>code: Option<String>warnings: Option<Vec<String>>http_response_body: Option<String>Implementations
sourceimpl SlackRateLimitError
impl SlackRateLimitError
pub fn new() -> Self
pub fn retry_after(&mut self, value: Duration) -> &mut Self
pub fn reset_retry_after(&mut self) -> &mut Self
pub fn mopt_retry_after(&mut self, value: Option<Duration>) -> &mut Self
pub fn with_retry_after(self, value: Duration) -> Self
pub fn without_retry_after(self) -> Self
pub fn opt_retry_after(self, value: Option<Duration>) -> Self
pub fn code(&mut self, value: String) -> &mut Self
pub fn reset_code(&mut self) -> &mut Self
pub fn mopt_code(&mut self, value: Option<String>) -> &mut Self
pub fn with_code(self, value: String) -> Self
pub fn without_code(self) -> Self
pub fn opt_code(self, value: Option<String>) -> Self
pub fn warnings(&mut self, value: Vec<String>) -> &mut Self
pub fn reset_warnings(&mut self) -> &mut Self
pub fn mopt_warnings(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn with_warnings(self, value: Vec<String>) -> Self
pub fn without_warnings(self) -> Self
pub fn opt_warnings(self, value: Option<Vec<String>>) -> Self
pub fn http_response_body(&mut self, value: String) -> &mut Self
pub fn reset_http_response_body(&mut self) -> &mut Self
pub fn mopt_http_response_body(&mut self, value: Option<String>) -> &mut Self
pub fn with_http_response_body(self, value: String) -> Self
pub fn without_http_response_body(self) -> Self
pub fn opt_http_response_body(self, value: Option<String>) -> Self
Trait Implementations
sourceimpl Clone for SlackRateLimitError
impl Clone for SlackRateLimitError
sourcefn clone(&self) -> SlackRateLimitError
fn clone(&self) -> SlackRateLimitError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SlackRateLimitError
impl Debug for SlackRateLimitError
sourceimpl Display for SlackRateLimitError
impl Display for SlackRateLimitError
sourceimpl Error for SlackRateLimitError
impl Error for SlackRateLimitError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<SlackRateLimitErrorInit> for SlackRateLimitError
impl From<SlackRateLimitErrorInit> for SlackRateLimitError
sourcefn from(value: SlackRateLimitErrorInit) -> Self
fn from(value: SlackRateLimitErrorInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackRateLimitError> for SlackRateLimitError
impl PartialEq<SlackRateLimitError> for SlackRateLimitError
sourcefn eq(&self, other: &SlackRateLimitError) -> bool
fn eq(&self, other: &SlackRateLimitError) -> bool
impl Eq for SlackRateLimitError
impl StructuralEq for SlackRateLimitError
impl StructuralPartialEq for SlackRateLimitError
Auto Trait Implementations
impl RefUnwindSafe for SlackRateLimitError
impl Send for SlackRateLimitError
impl Sync for SlackRateLimitError
impl Unpin for SlackRateLimitError
impl UnwindSafe for SlackRateLimitError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more