Struct google_cloudiot1::DeviceCredential
source · pub struct DeviceCredential {
pub public_key: Option<PublicKeyCredential>,
pub expiration_time: Option<String>,
}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§
§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.
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.
Trait Implementations§
source§impl Clone for DeviceCredential
impl Clone for DeviceCredential
source§fn clone(&self) -> DeviceCredential
fn clone(&self) -> DeviceCredential
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeviceCredential
impl Debug for DeviceCredential
source§impl Default for DeviceCredential
impl Default for DeviceCredential
source§fn default() -> DeviceCredential
fn default() -> DeviceCredential
source§impl<'de> Deserialize<'de> for DeviceCredential
impl<'de> Deserialize<'de> for DeviceCredential
source§fn 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>,
source§impl Serialize for DeviceCredential
impl Serialize for DeviceCredential
impl Part for DeviceCredential
Auto Trait Implementations§
impl Freeze for DeviceCredential
impl RefUnwindSafe for DeviceCredential
impl Send for DeviceCredential
impl Sync for DeviceCredential
impl Unpin for DeviceCredential
impl UnwindSafe for DeviceCredential
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more