pub struct AuthResponse {
pub token: String,
pub access_token: Option<String>,
pub expires_in: Option<u32>,
pub scope: Option<String>,
pub token_type: Option<String>,
}Expand description
Docker Hub 认证响应
表示 Docker Hub 认证 API 的响应,包含认证令牌和相关信息。
Fields§
§token: String认证令牌,用于后续 API 请求的授权
access_token: Option<String>访问令牌(可选)
expires_in: Option<u32>令牌过期时间(可选)
scope: Option<String>令牌作用域(可选)
token_type: Option<String>令牌类型(可选)
Trait Implementations§
Source§impl Clone for AuthResponse
impl Clone for AuthResponse
Source§fn clone(&self) -> AuthResponse
fn clone(&self) -> AuthResponse
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 AuthResponse
impl Debug for AuthResponse
Source§impl<'de> Deserialize<'de> for AuthResponse
impl<'de> Deserialize<'de> for AuthResponse
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
Auto Trait Implementations§
impl Freeze for AuthResponse
impl RefUnwindSafe for AuthResponse
impl Send for AuthResponse
impl Sync for AuthResponse
impl Unpin for AuthResponse
impl UnsafeUnpin for AuthResponse
impl UnwindSafe for AuthResponse
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