Struct sep2_common::packages::identification::SubscribableList
source · pub struct SubscribableList {
pub contents: Vec<String>,
pub all: Uint32,
pub results: Uint32,
pub subscribable: Option<SubscribableType>,
pub href: Option<String>,
}
Expand description
A List to which a Subscription can be requested.
Fields§
§contents: Vec<String>
This field is OOS since it is different in every child type but is required for our SEList trait implementation
all: Uint32
The number specifying “all” of the items in the list. Required on GET, ignored otherwise.
results: Uint32
Indicates the number of items in this page of results.
subscribable: Option<SubscribableType>
Indicates whether or not subscriptions are supported for this resource, and whether or not conditional (thresholds) are supported. If not specified, is “not subscribable” (0).
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 SubscribableList
impl Clone for SubscribableList
source§fn clone(&self) -> SubscribableList
fn clone(&self) -> SubscribableList
Returns a copy of the value. Read more
1.0.0 · 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 SubscribableList
impl Debug for SubscribableList
source§impl Default for SubscribableList
impl Default for SubscribableList
source§fn default() -> SubscribableList
fn default() -> SubscribableList
Returns the “default value” for a type. Read more
source§impl PartialEq<SubscribableList> for SubscribableList
impl PartialEq<SubscribableList> for SubscribableList
source§fn eq(&self, other: &SubscribableList) -> bool
fn eq(&self, other: &SubscribableList) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SEList for SubscribableList
impl SEList for SubscribableList
type Inner = String
fn all(&self) -> Uint32
fn all_mut(&mut self) -> &mut Uint32
fn results(&self) -> Uint32
fn results_mut(&mut self) -> &mut Uint32
fn list_as_slice(&self) -> &[Self::Inner]
fn list_mut(&mut self) -> &mut Vec<Self::Inner>
source§impl SEResource for SubscribableList
impl SEResource for SubscribableList
source§impl SESubscribableResource for SubscribableList
impl SESubscribableResource for SubscribableList
fn subscribable(&self) -> Option<SubscribableType>
source§impl YaDeserialize for SubscribableList
impl YaDeserialize for SubscribableList
source§impl YaSerialize for SubscribableList
impl YaSerialize for SubscribableList
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Eq for SubscribableList
impl SESubscribableList for SubscribableList
impl StructuralEq for SubscribableList
impl StructuralPartialEq for SubscribableList
Auto Trait Implementations§
impl RefUnwindSafe for SubscribableList
impl Send for SubscribableList
impl Sync for SubscribableList
impl Unpin for SubscribableList
impl UnwindSafe for SubscribableList
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