pub struct AuthInfo {
pub client_token: String,
pub accessor: String,
pub policies: Vec<String>,
pub token_policies: Vec<String>,
pub metadata: Option<HashMap<String, String>>,
pub lease_duration: u64,
pub renewable: bool,
pub entity_id: String,
pub token_type: String,
pub orphan: bool,
}
Expand description
The information stored in the optional auth
field of API responses
Fields§
§client_token: String
§accessor: String
§policies: Vec<String>
§token_policies: Vec<String>
§metadata: Option<HashMap<String, String>>
§lease_duration: u64
§renewable: bool
§entity_id: String
§token_type: String
§orphan: bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for AuthInfo
impl<'de> Deserialize<'de> for AuthInfo
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
Auto Trait Implementations§
impl Freeze for AuthInfo
impl RefUnwindSafe for AuthInfo
impl Send for AuthInfo
impl Sync for AuthInfo
impl Unpin for AuthInfo
impl UnwindSafe for AuthInfo
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