[][src]Struct credent_model::Profile

pub struct Profile {
    pub name: String,
    pub credentials: Credentials,
}

Profile to store credentials under.

This allows the credentials file to hold credentials for multiple environments.

Fields

name: String

Profile name.

credentials: Credentials

Credentials for this profile.

Implementations

impl Profile[src]

pub const DEFAULT_NAME: &'static str[src]

Name given to the default profile.

pub fn new(name: String, credentials: Credentials) -> Self[src]

Returns a new Profile.

pub fn new_default(credentials: Credentials) -> 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 Borrow<str> for Profile[src]

impl Clone for Profile[src]

impl Debug for Profile[src]

impl<'de> Deserialize<'de> for Profile[src]

impl Display for Profile[src]

impl Eq for Profile[src]

impl Ord for Profile[src]

impl PartialEq<Profile> for Profile[src]

impl PartialOrd<Profile> for Profile[src]

impl Serialize for Profile[src]

impl StructuralEq for Profile[src]

impl StructuralPartialEq for Profile[src]

Auto Trait Implementations

impl RefUnwindSafe for Profile

impl Send for Profile

impl Sync for Profile

impl Unpin for Profile

impl UnwindSafe for Profile

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.