pub struct BotManagementError {
pub title: String,
pub status: i32,
pub detail: Option<String>,
}Expand description
BotManagementError : An error response, formatted as a problem details object.
Fields§
§title: StringA short summary of the problem.
status: i32The HTTP status code of the response.
detail: Option<String>An explanation of the problem, specific to this occurrence.
Implementations§
Source§impl BotManagementError
impl BotManagementError
Sourcepub fn new(title: String, status: i32) -> BotManagementError
pub fn new(title: String, status: i32) -> BotManagementError
An error response, formatted as a problem details object.
Trait Implementations§
Source§impl Clone for BotManagementError
impl Clone for BotManagementError
Source§impl Debug for BotManagementError
impl Debug for BotManagementError
Source§impl Default for BotManagementError
impl Default for BotManagementError
Source§impl<'de> Deserialize<'de> for BotManagementError
impl<'de> Deserialize<'de> for BotManagementError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BotManagementError
impl PartialEq for BotManagementError
Source§impl Serialize for BotManagementError
impl Serialize for BotManagementError
impl StructuralPartialEq for BotManagementError
Auto Trait Implementations§
impl Freeze for BotManagementError
impl RefUnwindSafe for BotManagementError
impl Send for BotManagementError
impl Sync for BotManagementError
impl Unpin for BotManagementError
impl UnsafeUnpin for BotManagementError
impl UnwindSafe for BotManagementError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more