Struct sep2_common::packages::metering::ReadingList
source · pub struct ReadingList {
pub reading: Vec<Reading>,
pub all: Uint32,
pub results: Uint32,
pub subscribable: Option<SubscribableType>,
pub href: Option<String>,
}
Available on crate feature
metering
only.Fields§
§reading: Vec<Reading>
§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 ReadingList
impl Clone for ReadingList
source§fn clone(&self) -> ReadingList
fn clone(&self) -> ReadingList
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 ReadingList
impl Debug for ReadingList
source§impl Default for ReadingList
impl Default for ReadingList
source§fn default() -> ReadingList
fn default() -> ReadingList
Returns the “default value” for a type. Read more
source§impl PartialEq<ReadingList> for ReadingList
impl PartialEq<ReadingList> for ReadingList
source§fn eq(&self, other: &ReadingList) -> bool
fn eq(&self, other: &ReadingList) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SEList for ReadingList
impl SEList for ReadingList
type Inner = Reading
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 ReadingList
impl SEResource for ReadingList
source§impl SESubscribableResource for ReadingList
impl SESubscribableResource for ReadingList
fn subscribable(&self) -> Option<SubscribableType>
source§impl YaDeserialize for ReadingList
impl YaDeserialize for ReadingList
source§impl YaSerialize for ReadingList
impl YaSerialize for ReadingList
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 ReadingList
impl SESubscribableList for ReadingList
impl StructuralEq for ReadingList
impl StructuralPartialEq for ReadingList
Auto Trait Implementations§
impl RefUnwindSafe for ReadingList
impl Send for ReadingList
impl Sync for ReadingList
impl Unpin for ReadingList
impl UnwindSafe for ReadingList
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