pub struct HostAuthStatus {
pub host: String,
pub logged_in: bool,
pub user: Option<String>,
}Expand description
单个 host 的认证状态(GitLab 场景下可能同时配置多个 host)。
Fields§
§host: Stringhost 名称或地址(如 gitlab.com、192.168.230.23)。
logged_in: bool该 host 是否已登录。
user: Option<String>该 host 下的登录用户名(未登录时为 None)。
Trait Implementations§
Source§impl Clone for HostAuthStatus
impl Clone for HostAuthStatus
Source§impl Debug for HostAuthStatus
impl Debug for HostAuthStatus
Source§impl<'de> Deserialize<'de> for HostAuthStatus
impl<'de> Deserialize<'de> for HostAuthStatus
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 HostAuthStatus
impl RefUnwindSafe for HostAuthStatus
impl Send for HostAuthStatus
impl Sync for HostAuthStatus
impl Unpin for HostAuthStatus
impl UnsafeUnpin for HostAuthStatus
impl UnwindSafe for HostAuthStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more