#[non_exhaustive]pub struct CredentialRequest<'a> {
pub service: CredentialService,
pub host: Option<&'a str>,
}Expand description
The context of a credential request: which service, and the remote host if
the backend knows it (forge calls often defer host resolution to the CLI, so
host is frequently None). #[non_exhaustive]: more context may be added.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.service: CredentialServiceThe backend/tool making the request.
host: Option<&'a str>The remote host (e.g. github.com), if known.
Implementations§
Source§impl<'a> CredentialRequest<'a>
impl<'a> CredentialRequest<'a>
Trait Implementations§
Source§impl<'a> Clone for CredentialRequest<'a>
impl<'a> Clone for CredentialRequest<'a>
Source§fn clone(&self) -> CredentialRequest<'a>
fn clone(&self) -> CredentialRequest<'a>
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 moreimpl<'a> Copy for CredentialRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for CredentialRequest<'a>
impl<'a> RefUnwindSafe for CredentialRequest<'a>
impl<'a> Send for CredentialRequest<'a>
impl<'a> Sync for CredentialRequest<'a>
impl<'a> Unpin for CredentialRequest<'a>
impl<'a> UnsafeUnpin for CredentialRequest<'a>
impl<'a> UnwindSafe for CredentialRequest<'a>
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