pub enum SecretType {
Token,
Password,
}Expand description
Enum used to encode secret_type parameter (password or token)
When set to [Password], the secret is used to obtain a session token by using the login API. When set to [Token], the secret is a private access token directly usable to access API.
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for SecretType
impl Debug for SecretType
Source§impl<'de> Deserialize<'de> for SecretType
impl<'de> Deserialize<'de> for SecretType
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 Display for SecretType
impl Display for SecretType
Source§impl FromStr for SecretType
impl FromStr for SecretType
Auto Trait Implementations§
impl Freeze for SecretType
impl RefUnwindSafe for SecretType
impl Send for SecretType
impl Sync for SecretType
impl Unpin for SecretType
impl UnwindSafe for SecretType
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