Struct credent_model::Profile [−][src]
Profile to store credentials under.
This allows the credentials
file to hold credentials for multiple
environments.
Fields
name: String
Profile name.
credentials: C
Credentials for this profile.
Implementations
impl<C> Profile<C>
[src]
pub const DEFAULT_NAME: &'static str
[src]
Name given to the default profile.
pub fn new(name: String, credentials: C) -> Self
[src]
Returns a new Profile
.
pub fn new_default(credentials: C) -> Self
[src]
Returns a new Profile
with the "default"
name.
pub fn is_default(&self) -> bool
[src]
Returns whether this profile has the "default"
profile name.
Trait Implementations
impl<C> Borrow<str> for Profile<C>
[src]
impl<C: Clone> Clone for Profile<C>
[src]
impl<C: Debug> Debug for Profile<C>
[src]
impl<'de, C> Deserialize<'de> for Profile<C> where
C: Deserialize<'de>,
[src]
C: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<C> Display for Profile<C> where
C: Display,
[src]
C: Display,
impl<C: Eq> Eq for Profile<C>
[src]
impl<C> Ord for Profile<C> where
C: Eq,
[src]
C: Eq,
fn cmp(&self, other: &Profile<C>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<C: PartialEq> PartialEq<Profile<C>> for Profile<C>
[src]
impl<C> PartialOrd<Profile<C>> for Profile<C> where
C: Eq,
[src]
C: Eq,
fn partial_cmp(&self, other: &Profile<C>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<C> Serialize for Profile<C> where
C: Serialize,
[src]
C: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<C> StructuralEq for Profile<C>
[src]
impl<C> StructuralPartialEq for Profile<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for Profile<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for Profile<C> where
C: Send,
C: Send,
impl<C> Sync for Profile<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Profile<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for Profile<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,