pub struct DirectoryNotification {
pub subscription_id: Option<String>,
pub timestamp: OffsetDateTime,
pub service_info: Option<ServiceInfo>,
pub modified: Option<Vec<SignedApiRecord>>,
pub redirected: Option<Vec<RedirectInfo>>,
pub deleted: Option<Vec<ApiRecordRef>>,
pub canceled: Option<Vec<CanceledSubscription>>,
pub error: Option<NotificationError>,
}Expand description
Message sent by the server to notify the client of directory changes.
Received over the WebSocket channel /ws/subscriptions/v1.
Fields§
§subscription_id: Option<String>Echoed subscription request ID (set when responding to a subscribe/cancel request).
timestamp: OffsetDateTimeUTC timestamp when this notification was generated (ISO 8601).
service_info: Option<ServiceInfo>Current service information (included on first connect or when it changes).
modified: Option<Vec<SignedApiRecord>>Directory entries that were added or updated.
redirected: Option<Vec<RedirectInfo>>Redirect configurations for directory entries.
deleted: Option<Vec<ApiRecordRef>>References to directory entries that were deleted.
canceled: Option<Vec<CanceledSubscription>>Subscriptions confirmed as canceled (by client or by server).
error: Option<NotificationError>Error information — mutually exclusive with the change fields above.
Trait Implementations§
Source§impl Clone for DirectoryNotification
impl Clone for DirectoryNotification
Source§fn clone(&self) -> DirectoryNotification
fn clone(&self) -> DirectoryNotification
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 DirectoryNotification
impl Debug for DirectoryNotification
Source§impl<'de> Deserialize<'de> for DirectoryNotification
impl<'de> Deserialize<'de> for DirectoryNotification
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 DirectoryNotification
impl PartialEq for DirectoryNotification
Source§fn eq(&self, other: &DirectoryNotification) -> bool
fn eq(&self, other: &DirectoryNotification) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DirectoryNotification
impl Serialize for DirectoryNotification
impl StructuralPartialEq for DirectoryNotification
Auto Trait Implementations§
impl Freeze for DirectoryNotification
impl RefUnwindSafe for DirectoryNotification
impl Send for DirectoryNotification
impl Sync for DirectoryNotification
impl Unpin for DirectoryNotification
impl UnsafeUnpin for DirectoryNotification
impl UnwindSafe for DirectoryNotification
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