Struct sep2_common::packages::pubsub::Notification
source · pub struct Notification<T: SEResource> {
pub new_resource_uri: Option<String>,
pub resource: Option<T>,
pub status: Uint8,
pub subscription_uri: String,
pub subscribed_resource: String,
pub href: Option<String>,
}
pubsub
only.Fields§
§new_resource_uri: Option<String>
The new location of the resource, if moved. This attribute SHALL be a fully-qualified absolute URI, not a relative reference.
resource: Option<T>
§status: Uint8
0 = Default Status 1 = Subscription canceled, no additional information 2 = Subscription canceled, resource moved 3 = Subscription canceled, resource definition changed (e.g., a new version of IEEE 2030.5) 4 = Subscription canceled, resource deleted All other values reserved.
subscription_uri: String
The subscription from which this notification was triggered. This attribute SHALL be a fully-qualified absolute URI, not a relative reference.
subscribed_resource: String
The resource for which the subscription applies. Query string parameters SHALL NOT be specified when subscribing to list resources. Should a query string parameter be specified, servers SHALL ignore them.
href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl<T: Clone + SEResource> Clone for Notification<T>
impl<T: Clone + SEResource> Clone for Notification<T>
source§fn clone(&self) -> Notification<T>
fn clone(&self) -> Notification<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<T: Debug + SEResource> Debug for Notification<T>
impl<T: Debug + SEResource> Debug for Notification<T>
source§impl<T: Default + SEResource> Default for Notification<T>
impl<T: Default + SEResource> Default for Notification<T>
source§fn default() -> Notification<T>
fn default() -> Notification<T>
source§impl<T: SEResource + Eq> Ord for Notification<T>
impl<T: SEResource + Eq> Ord for Notification<T>
source§impl<T: PartialEq + SEResource> PartialEq<Notification<T>> for Notification<T>
impl<T: PartialEq + SEResource> PartialEq<Notification<T>> for Notification<T>
source§fn eq(&self, other: &Notification<T>) -> bool
fn eq(&self, other: &Notification<T>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl<T: SEResource + Eq> PartialOrd<Notification<T>> for Notification<T>
impl<T: SEResource + Eq> PartialOrd<Notification<T>> for Notification<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more