pub struct Token {
pub refreshed: Instant,
pub min: u16,
pub ttl: Duration,
pub cmd: String,
pub value: Option<String>,
}
Expand description
Token is actually a temporary password obtained from another app run
Fields§
§refreshed: Instant
time of taken
min: u16
Time to live
ttl: Duration
Time to live
cmd: String
shell command to run like this: az account get-access-token –resource-type oss-rdbms | jq -r .accessToken
value: Option<String>
The password
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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