pub struct LiveCredential {
pub value: Arc<ArcSwap<String>>,
pub refresh_value: Option<Arc<RwLock<String>>>,
pub inject_as: InjectAs,
pub refresh_lead_secs: u64,
}Expand description
The resolved, live credential produced by executing the flow.
Fields§
§value: Arc<ArcSwap<String>>The primary credential value (token, cookie value…).
refresh_value: Option<Arc<RwLock<String>>>Optional refresh token.
inject_as: InjectAsHow to apply it.
refresh_lead_secs: u64For token refresh: seconds before expiry to trigger refresh.
Implementations§
Trait Implementations§
Source§impl Clone for LiveCredential
impl Clone for LiveCredential
Source§fn clone(&self) -> LiveCredential
fn clone(&self) -> LiveCredential
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 moreAuto Trait Implementations§
impl Freeze for LiveCredential
impl !RefUnwindSafe for LiveCredential
impl Send for LiveCredential
impl Sync for LiveCredential
impl Unpin for LiveCredential
impl UnsafeUnpin for LiveCredential
impl !UnwindSafe for LiveCredential
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