pub struct EnrollmentToken {
pub duration: Option<Duration>,
pub enrollment_token_type: Option<String>,
pub google_authentication_options: Option<EnrollmentTokenGoogleAuthenticationOptions>,
pub token: Option<String>,
}Expand description
A token used to enroll a device.
§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).
- create enrollment tokens (request|response)
Fields§
§duration: Option<Duration>[Optional] The length of time the enrollment token is valid, ranging from 1 minute to Durations.MAX_VALUE, approximately 10,000 years. If not specified, the default duration is 1 hour.
enrollment_token_type: Option<String>[Required] The type of the enrollment token.
google_authentication_options: Option<EnrollmentTokenGoogleAuthenticationOptions>[Optional] Provides options related to Google authentication during the enrollment.
token: Option<String>The token value that’s passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
Trait Implementations§
Source§impl Clone for EnrollmentToken
impl Clone for EnrollmentToken
Source§fn clone(&self) -> EnrollmentToken
fn clone(&self) -> EnrollmentToken
Returns a duplicate 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 EnrollmentToken
impl Debug for EnrollmentToken
Source§impl Default for EnrollmentToken
impl Default for EnrollmentToken
Source§fn default() -> EnrollmentToken
fn default() -> EnrollmentToken
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnrollmentToken
impl<'de> Deserialize<'de> for EnrollmentToken
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for EnrollmentToken
impl Serialize for EnrollmentToken
impl RequestValue for EnrollmentToken
impl Resource for EnrollmentToken
impl ResponseResult for EnrollmentToken
Auto Trait Implementations§
impl Freeze for EnrollmentToken
impl RefUnwindSafe for EnrollmentToken
impl Send for EnrollmentToken
impl Sync for EnrollmentToken
impl Unpin for EnrollmentToken
impl UnwindSafe for EnrollmentToken
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