pub enum CredentialKind {
CloudAiKey,
ZoweProfile,
Service,
}Expand description
Discriminator for the kinds of credentials Flow Studio stores. Used as the account-name prefix so different secret kinds don’t collide on the same service entry.
Variants§
CloudAiKey
Cloud-AI provider API key.
ZoweProfile
Zowe profile credentials (future M3.3b).
Service
Service-node connection secret (API key, token, basic user:pass, or an
OAuth2 token bundle serialized as JSON). Keyed by the service catalog slug.
Implementations§
Source§impl CredentialKind
impl CredentialKind
pub fn account_for(self, key: &str) -> String
Trait Implementations§
Source§impl Clone for CredentialKind
impl Clone for CredentialKind
Source§fn clone(&self) -> CredentialKind
fn clone(&self) -> CredentialKind
Returns a duplicate 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 Debug for CredentialKind
impl Debug for CredentialKind
Source§impl PartialEq for CredentialKind
impl PartialEq for CredentialKind
impl Copy for CredentialKind
impl Eq for CredentialKind
impl StructuralPartialEq for CredentialKind
Auto Trait Implementations§
impl Freeze for CredentialKind
impl RefUnwindSafe for CredentialKind
impl Send for CredentialKind
impl Sync for CredentialKind
impl Unpin for CredentialKind
impl UnsafeUnpin for CredentialKind
impl UnwindSafe for CredentialKind
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