Struct google_cloudiot1::api::DeviceRegistry
source · [−]pub struct DeviceRegistry {
pub credentials: Option<Vec<RegistryCredential>>,
pub event_notification_configs: Option<Vec<EventNotificationConfig>>,
pub http_config: Option<HttpConfig>,
pub id: Option<String>,
pub log_level: Option<String>,
pub mqtt_config: Option<MqttConfig>,
pub name: Option<String>,
pub state_notification_config: Option<StateNotificationConfig>,
}Expand description
A container for a group of devices.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations registries create projects (request|response)
- locations registries get projects (response)
- locations registries patch projects (request|response)
Fields
credentials: Option<Vec<RegistryCredential>>The credentials used to verify the device credentials. No more than 10 credentials can be bound to a single registry at a time. The verification process occurs at the time of device creation or update. If this field is empty, no verification is performed. Otherwise, the credentials of a newly created device or added credentials of an updated device should be signed with one of these registry credentials. Note, however, that existing devices will never be affected by modifications to this list of credentials: after a device has been successfully created in a registry, it should be able to connect even if its registry credentials are revoked, deleted, or modified.
event_notification_configs: Option<Vec<EventNotificationConfig>>The configuration for notification of telemetry events received from the device. All telemetry events that were successfully published by the device and acknowledged by Cloud IoT Core are guaranteed to be delivered to Cloud Pub/Sub. If multiple configurations match a message, only the first matching configuration is used. If you try to publish a device telemetry event using MQTT without specifying a Cloud Pub/Sub topic for the device’s registry, the connection closes automatically. If you try to do so using an HTTP connection, an error is returned. Up to 10 configurations may be provided.
http_config: Option<HttpConfig>The DeviceService (HTTP) configuration for this device registry.
id: Option<String>The identifier of this device registry. For example, myRegistry.
log_level: Option<String>Beta Feature The default logging verbosity for activity from devices in this registry. The verbosity level can be overridden by Device.log_level.
mqtt_config: Option<MqttConfig>The MQTT configuration for this device registry.
name: Option<String>The resource path name. For example, projects/example-project/locations/us-central1/registries/my-registry.
state_notification_config: Option<StateNotificationConfig>The configuration for notification of new states received from the device. State updates are guaranteed to be stored in the state history, but notifications to Cloud Pub/Sub are not guaranteed. For example, if permissions are misconfigured or the specified topic doesn’t exist, no notification will be published but the state will still be stored in Cloud IoT Core.
Trait Implementations
sourceimpl Clone for DeviceRegistry
impl Clone for DeviceRegistry
sourcefn clone(&self) -> DeviceRegistry
fn clone(&self) -> DeviceRegistry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DeviceRegistry
impl Debug for DeviceRegistry
sourceimpl Default for DeviceRegistry
impl Default for DeviceRegistry
sourcefn default() -> DeviceRegistry
fn default() -> DeviceRegistry
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DeviceRegistry
impl<'de> Deserialize<'de> for DeviceRegistry
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for DeviceRegistry
impl Serialize for DeviceRegistry
impl RequestValue for DeviceRegistry
impl ResponseResult for DeviceRegistry
Auto Trait Implementations
impl RefUnwindSafe for DeviceRegistry
impl Send for DeviceRegistry
impl Sync for DeviceRegistry
impl Unpin for DeviceRegistry
impl UnwindSafe for DeviceRegistry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more