Struct cargo_credential::LoginOptions
source · pub struct LoginOptions<'a> {
pub token: Option<Secret<&'a str>>,
pub login_url: Option<&'a str>,
}
Fields§
§token: Option<Secret<&'a str>>
Token passed on the command line via –token or from stdin
login_url: Option<&'a str>
Optional URL that the user can visit to log in to the registry
Trait Implementations§
source§impl<'a> Clone for LoginOptions<'a>
impl<'a> Clone for LoginOptions<'a>
source§fn clone(&self) -> LoginOptions<'a>
fn clone(&self) -> LoginOptions<'a>
Returns a copy 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<'a> Debug for LoginOptions<'a>
impl<'a> Debug for LoginOptions<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for LoginOptions<'a>
impl<'de: 'a, 'a> Deserialize<'de> for LoginOptions<'a>
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<'a> PartialEq<LoginOptions<'a>> for LoginOptions<'a>
impl<'a> PartialEq<LoginOptions<'a>> for LoginOptions<'a>
source§fn eq(&self, other: &LoginOptions<'a>) -> bool
fn eq(&self, other: &LoginOptions<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for LoginOptions<'a>
impl<'a> Serialize for LoginOptions<'a>
impl<'a> Eq for LoginOptions<'a>
impl<'a> StructuralEq for LoginOptions<'a>
impl<'a> StructuralPartialEq for LoginOptions<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LoginOptions<'a>
impl<'a> Send for LoginOptions<'a>
impl<'a> Sync for LoginOptions<'a>
impl<'a> Unpin for LoginOptions<'a>
impl<'a> UnwindSafe for LoginOptions<'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
impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes