pub struct Overlay {
pub vars: BTreeMap<String, String>,
pub endpoints: BTreeMap<String, String>,
pub credentials: BTreeMap<String, SecretValue>,
pub expires_at: Option<SystemTime>,
}Expand description
What a Source contributes to an instance’s environment.
Fields§
§vars: BTreeMap<String, String>Plain variables.
endpoints: BTreeMap<String, String>Where hosted services are reached (e.g. a function’s URL), as variables.
credentials: BTreeMap<String, SecretValue>Credentials, as variables (e.g. a database password, vended storage keys). Masked wherever the environment is shown.
expires_at: Option<SystemTime>When the credentials stop working, if they expire.
Implementations§
Source§impl Overlay
impl Overlay
Sourcepub fn is_expired(&self, now: SystemTime) -> bool
pub fn is_expired(&self, now: SystemTime) -> bool
Whether the credentials have expired at now.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Overlay
impl RefUnwindSafe for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnsafeUnpin for Overlay
impl UnwindSafe for Overlay
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