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§
source§impl 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§
source§impl Clone for SlackRateLimitError
impl Clone for SlackRateLimitError
source§fn clone(&self) -> SlackRateLimitError
fn clone(&self) -> SlackRateLimitError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SlackRateLimitError
impl Debug for SlackRateLimitError
source§impl Display for SlackRateLimitError
impl Display for SlackRateLimitError
source§impl Error for SlackRateLimitError
impl Error for SlackRateLimitError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<SlackRateLimitErrorInit> for SlackRateLimitError
impl From<SlackRateLimitErrorInit> for SlackRateLimitError
source§fn from(value: SlackRateLimitErrorInit) -> Self
fn from(value: SlackRateLimitErrorInit) -> Self
Converts to this type from the input type.