pub struct NotificationError {
pub status_code: u32,
pub description: String,
pub request: Option<String>,
}Expand description
Error payload in a DirectoryNotification.
Fields§
§status_code: u32HTTP status code describing the error.
description: StringHuman-readable description.
request: Option<String>Base64-encoded original SubscriptionRequest that triggered the error
(present when the error arose from a subscribe operation and
subscription_id could not be extracted from the request).
Trait Implementations§
Source§impl Clone for NotificationError
impl Clone for NotificationError
Source§fn clone(&self) -> NotificationError
fn clone(&self) -> NotificationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotificationError
impl Debug for NotificationError
Source§impl<'de> Deserialize<'de> for NotificationError
impl<'de> Deserialize<'de> for NotificationError
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 NotificationError
impl PartialEq for NotificationError
Source§fn eq(&self, other: &NotificationError) -> bool
fn eq(&self, other: &NotificationError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NotificationError
impl Serialize for NotificationError
impl StructuralPartialEq for NotificationError
Auto Trait Implementations§
impl Freeze for NotificationError
impl RefUnwindSafe for NotificationError
impl Send for NotificationError
impl Sync for NotificationError
impl Unpin for NotificationError
impl UnsafeUnpin for NotificationError
impl UnwindSafe for NotificationError
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