pub struct DeviceClient { /* private fields */ }Expand description
One client allowed to run the device grant. Declaring it is what makes
its client_id valid and its scopes the only scopes it may ask for.
Implementations§
Source§impl DeviceClient
impl DeviceClient
Sourcepub fn scopes(self, scopes: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn scopes(self, scopes: impl IntoIterator<Item = impl Into<String>>) -> Self
Declares the whole scope list. Replaces any previous list.
Sourcepub fn declared_scopes(&self) -> &[String]
pub fn declared_scopes(&self) -> &[String]
The scopes this client may ask for.
Trait Implementations§
Source§impl Clone for DeviceClient
impl Clone for DeviceClient
Auto Trait Implementations§
impl Freeze for DeviceClient
impl RefUnwindSafe for DeviceClient
impl Send for DeviceClient
impl Sync for DeviceClient
impl Unpin for DeviceClient
impl UnsafeUnpin for DeviceClient
impl UnwindSafe for DeviceClient
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