Struct sep2_common::packages::pubsub::Subscription
source · pub struct Subscription {
pub condition: Option<Condition>,
pub encoding: HTTPEncoding,
pub level: String16,
pub limit: Uint32,
pub notification_uri: String,
pub subscribed_resource: String,
pub href: Option<String>,
}
pubsub
only.Fields§
§condition: Option<Condition>
§encoding: HTTPEncoding
0 - application/sep+xml 1 - application/sep-exi 2-255 - reserved
level: String16
Contains the preferred schema and extensibility level indication such as “+S1”
limit: Uint32
This element is used to indicate the maximum number of list items that should be included in a notification when the subscribed resource changes. This limit is meant to be functionally equivalent to the ‘limit’ query string parameter, but applies to both list resources as well as other resources. For list resources, if a limit of ‘0’ is specified, then notifications SHALL contain a list resource with results=’0’ (equivalent to a simple change notification). For list resources, if a limit greater than ‘0’ is specified, then notifications SHALL contain a list resource with results equal to the limit specified (or less, should the list contain fewer items than the limit specified or should the server be unable to provide the requested number of items for any reason) and follow the same rules for list resources (e.g., ordering). For non-list resources, if a limit of ‘0’ is specified, then notifications SHALL NOT contain a resource representation (equivalent to a simple change notification). For non-list resources, if a limit greater than ‘0’ is specified, then notifications SHALL contain the representation of the changed resource.
notification_uri: String
The resource to which to post the notifications about the requested subscribed resource. Because this URI will exist on a server other than the one being POSTed to, 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 Clone for Subscription
impl Clone for Subscription
source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Subscription
impl Debug for Subscription
source§impl Default for Subscription
impl Default for Subscription
source§fn default() -> Subscription
fn default() -> Subscription
source§impl Ord for Subscription
impl Ord for Subscription
source§impl PartialEq<Subscription> for Subscription
impl PartialEq<Subscription> for Subscription
source§fn eq(&self, other: &Subscription) -> bool
fn eq(&self, other: &Subscription) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Subscription> for Subscription
impl PartialOrd<Subscription> for Subscription
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