pub struct DeviceAuthorizationView {
pub user_code: String,
pub client_id: String,
pub client_name: Option<String>,
pub created_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
}Expand description
GET /api/v1/auth/device/lookup 响应:给批准页展示「谁在请求」。不含任何 secret。
Fields§
§user_code: String§client_id: String§client_name: Option<String>内嵌 host,如 swarmhive @ macbook.local。
created_at: DateTime<Utc>§expires_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for DeviceAuthorizationView
impl Clone for DeviceAuthorizationView
Source§fn clone(&self) -> DeviceAuthorizationView
fn clone(&self) -> DeviceAuthorizationView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for DeviceAuthorizationView
impl ComposeSchema for DeviceAuthorizationView
Source§impl Debug for DeviceAuthorizationView
impl Debug for DeviceAuthorizationView
Source§impl<'de> Deserialize<'de> for DeviceAuthorizationView
impl<'de> Deserialize<'de> for DeviceAuthorizationView
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 DeviceAuthorizationView
impl Serialize for DeviceAuthorizationView
Auto Trait Implementations§
impl Freeze for DeviceAuthorizationView
impl RefUnwindSafe for DeviceAuthorizationView
impl Send for DeviceAuthorizationView
impl Sync for DeviceAuthorizationView
impl Unpin for DeviceAuthorizationView
impl UnsafeUnpin for DeviceAuthorizationView
impl UnwindSafe for DeviceAuthorizationView
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