Struct sep2_common::packages::configuration::Configuration
source · pub struct Configuration {
pub current_locale: LocaleType,
pub power_configuration: Option<PowerConfiguration>,
pub price_response_cfg_list_link: Option<PriceResponseCfgListLink>,
pub time_configuration: Option<TimeConfiguration>,
pub user_device_name: String32,
pub poll_rate: Option<Uint32>,
pub subscribable: Option<SubscribableType>,
pub href: Option<String>,
}
Available on crate feature
configuration
only.Fields§
§current_locale: LocaleType
[RFC 4646] identifier of the language-region currently in use.
power_configuration: Option<PowerConfiguration>
§price_response_cfg_list_link: Option<PriceResponseCfgListLink>
§time_configuration: Option<TimeConfiguration>
§user_device_name: String32
User assigned, convenience name used for network browsing displays, etc. Example “My Thermostat”
poll_rate: Option<Uint32>
The default polling rate for this function set (this resource and all resources below), in seconds. If not specified, a default of 900 seconds (15 minutes) is used. It is RECOMMENDED a client poll the resources of this function set every pollRate seconds.
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 Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
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 Configuration
impl Debug for Configuration
source§impl Default for Configuration
impl Default for Configuration
source§fn default() -> Configuration
fn default() -> Configuration
Returns the “default value” for a type. Read more
source§impl PartialEq<Configuration> for Configuration
impl PartialEq<Configuration> for Configuration
source§fn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SEResource for Configuration
impl SEResource for Configuration
source§impl SESubscribableResource for Configuration
impl SESubscribableResource for Configuration
fn subscribable(&self) -> Option<SubscribableType>
source§impl YaDeserialize for Configuration
impl YaDeserialize for Configuration
source§impl YaSerialize for Configuration
impl YaSerialize for Configuration
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 Configuration
impl StructuralEq for Configuration
impl StructuralPartialEq for Configuration
Auto Trait Implementations§
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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