pub struct ApplicationCredentialsBuilder { /* private fields */ }Expand description
Builder for validated ApplicationCredentials.
Implementations§
Source§impl ApplicationCredentialsBuilder
impl ApplicationCredentialsBuilder
Sourcepub fn device_id(self, device_id: impl Into<String>) -> Self
pub fn device_id(self, device_id: impl Into<String>) -> Self
Sets the provider device identifier.
Sourcepub fn app_id(self, app_id: impl Into<String>) -> Self
pub fn app_id(self, app_id: impl Into<String>) -> Self
Sets the authorized application identifier.
Sourcepub fn verify_key(self, verify_key: impl Into<String>) -> Self
pub fn verify_key(self, verify_key: impl Into<String>) -> Self
Sets the authorized application’s verification key.
Sourcepub fn build(self) -> Result<ApplicationCredentials, Error>
pub fn build(self) -> Result<ApplicationCredentials, Error>
Validates and builds the authorized-application credentials.
§Errors
Returns Error::Configuration when a required value is missing,
empty, or padded with whitespace.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApplicationCredentialsBuilder
impl RefUnwindSafe for ApplicationCredentialsBuilder
impl Send for ApplicationCredentialsBuilder
impl Sync for ApplicationCredentialsBuilder
impl Unpin for ApplicationCredentialsBuilder
impl UnsafeUnpin for ApplicationCredentialsBuilder
impl UnwindSafe for ApplicationCredentialsBuilder
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