Struct google_cloudiot1::api::DeviceCredential
source · [−]pub struct DeviceCredential {
pub expiration_time: Option<String>,
pub public_key: Option<PublicKeyCredential>,
}Expand description
A server-stored device credential used for authentication.
This type is not used in any activity, and only used as part of another schema.
Fields
expiration_time: Option<String>[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
public_key: Option<PublicKeyCredential>A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
Trait Implementations
sourceimpl Clone for DeviceCredential
impl Clone for DeviceCredential
sourcefn clone(&self) -> DeviceCredential
fn clone(&self) -> DeviceCredential
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 DeviceCredential
impl Debug for DeviceCredential
sourceimpl Default for DeviceCredential
impl Default for DeviceCredential
sourcefn default() -> DeviceCredential
fn default() -> DeviceCredential
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DeviceCredential
impl<'de> Deserialize<'de> for DeviceCredential
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 DeviceCredential
impl Serialize for DeviceCredential
impl Part for DeviceCredential
Auto Trait Implementations
impl RefUnwindSafe for DeviceCredential
impl Send for DeviceCredential
impl Sync for DeviceCredential
impl Unpin for DeviceCredential
impl UnwindSafe for DeviceCredential
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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> 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