Struct sep2_common::packages::identification::SubscribableResource
source · pub struct SubscribableResource {
pub subscribable: Option<SubscribableType>,
pub href: Option<String>,
}
Expand description
A Resource to which a Subscription can be requested.
Fields§
§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 SubscribableResource
impl Clone for SubscribableResource
source§fn clone(&self) -> SubscribableResource
fn clone(&self) -> SubscribableResource
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 SubscribableResource
impl Debug for SubscribableResource
source§impl Default for SubscribableResource
impl Default for SubscribableResource
source§fn default() -> SubscribableResource
fn default() -> SubscribableResource
Returns the “default value” for a type. Read more
source§impl PartialEq<SubscribableResource> for SubscribableResource
impl PartialEq<SubscribableResource> for SubscribableResource
source§fn eq(&self, other: &SubscribableResource) -> bool
fn eq(&self, other: &SubscribableResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SEResource for SubscribableResource
impl SEResource for SubscribableResource
source§impl SESubscribableResource for SubscribableResource
impl SESubscribableResource for SubscribableResource
fn subscribable(&self) -> Option<SubscribableType>
source§impl YaDeserialize for SubscribableResource
impl YaDeserialize for SubscribableResource
source§impl YaSerialize for SubscribableResource
impl YaSerialize for SubscribableResource
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 SubscribableResource
impl StructuralEq for SubscribableResource
impl StructuralPartialEq for SubscribableResource
Auto Trait Implementations§
impl RefUnwindSafe for SubscribableResource
impl Send for SubscribableResource
impl Sync for SubscribableResource
impl Unpin for SubscribableResource
impl UnwindSafe for SubscribableResource
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