pub enum DeviceAuthSseEvent {
Authorized {
token: String,
token_name: String,
},
Expired,
}Expand description
A typed SSE event from the device auth stream.
Variants§
Authorized
The device flow was approved; contains the API token and token name.
Expired
The device flow expired before approval.
Trait Implementations§
Source§impl Clone for DeviceAuthSseEvent
impl Clone for DeviceAuthSseEvent
Source§fn clone(&self) -> DeviceAuthSseEvent
fn clone(&self) -> DeviceAuthSseEvent
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 moreAuto Trait Implementations§
impl Freeze for DeviceAuthSseEvent
impl RefUnwindSafe for DeviceAuthSseEvent
impl Send for DeviceAuthSseEvent
impl Sync for DeviceAuthSseEvent
impl Unpin for DeviceAuthSseEvent
impl UnsafeUnpin for DeviceAuthSseEvent
impl UnwindSafe for DeviceAuthSseEvent
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