#[non_exhaustive]pub struct AuthLoginResult {
pub provider: String,
pub env: String,
pub identity: String,
pub expires_at: String,
pub scopes: Vec<String>,
pub refreshable: bool,
}Expand description
Data rendered after a successful auth login.
Built by login_and_build/login_and_build_with_scopes from the
dispatcher’s Credential. Consumer code receives it as a command
result and should not construct it directly — #[non_exhaustive] lets
this framework add fields (as it did for refreshable)
without another breaking release.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.provider: StringProvider used for login.
env: StringEnvironment used for login.
identity: StringAuthenticated identity.
expires_at: StringCredential expiration timestamp.
scopes: Vec<String>OAuth scopes granted to the new credential, empty when the provider
doesn’t expose scope data (e.g. PATs). Mirrors
AuthStatusEntry::scopes, so auth login’s output is consistent
with a subsequent auth status.
refreshable: boolWhether a renewal mechanism was issued for the new credential (e.g.
an OAuth refresh token) — reflects presence, not verified validity.
Mirrors AuthStatusEntry::refreshable.
Trait Implementations§
Source§impl Clone for AuthLoginResult
impl Clone for AuthLoginResult
Source§fn clone(&self) -> AuthLoginResult
fn clone(&self) -> AuthLoginResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AuthLoginResult
impl Debug for AuthLoginResult
Source§impl<'de> Deserialize<'de> for AuthLoginResult
impl<'de> Deserialize<'de> for AuthLoginResult
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>,
impl Eq for AuthLoginResult
Source§impl PartialEq for AuthLoginResult
impl PartialEq for AuthLoginResult
Source§impl Serialize for AuthLoginResult
impl Serialize for AuthLoginResult
impl StructuralPartialEq for AuthLoginResult
Auto Trait Implementations§
impl Freeze for AuthLoginResult
impl RefUnwindSafe for AuthLoginResult
impl Send for AuthLoginResult
impl Sync for AuthLoginResult
impl Unpin for AuthLoginResult
impl UnsafeUnpin for AuthLoginResult
impl UnwindSafe for AuthLoginResult
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.