pub struct SchemaEntry {
pub description: String,
pub example: Option<String>,
pub tags: Vec<String>,
pub created: Option<String>,
pub updated: Option<String>,
pub rotation_interval_days: Option<u32>,
pub expires_at: Option<String>,
pub revoked_at: Option<String>,
}Fields§
§description: String§example: Option<String>§created: Option<String>When the key was first added.
updated: Option<String>When the value was last updated. Doubles as “last rotated”: any value
change (add/edit/rotate) bumps it, so it anchors the rotation clock.
rotation_interval_days: Option<u32>Soft rotation policy: rotate at least every N days. doctor flags the
key as overdue when updated + rotation_interval_days is in the past.
expires_at: Option<String>Hard expiry (ISO-8601 UTC) for credentials with a known end-of-life,
e.g. a token. doctor flags it as expired or expiring soon.
revoked_at: Option<String>Set to the revoke time (ISO-8601 UTC) when a recipient who could read
this key is revoked and rotation is deferred. Its presence is the
obligation: the revoked recipient can still decrypt the live value from
git history until it changes. Any value write (add/edit/rotate/
import) clears it, so a set revoked_at always means “still owed a
rotation since this revoke”. doctor flags it until then.
Trait Implementations§
Source§impl Clone for SchemaEntry
impl Clone for SchemaEntry
Source§fn clone(&self) -> SchemaEntry
fn clone(&self) -> SchemaEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SchemaEntry
impl Debug for SchemaEntry
Source§impl Default for SchemaEntry
impl Default for SchemaEntry
Source§fn default() -> SchemaEntry
fn default() -> SchemaEntry
Source§impl<'de> Deserialize<'de> for SchemaEntry
impl<'de> Deserialize<'de> for SchemaEntry
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>,
impl Eq for SchemaEntry
Source§impl PartialEq for SchemaEntry
impl PartialEq for SchemaEntry
Source§fn eq(&self, other: &SchemaEntry) -> bool
fn eq(&self, other: &SchemaEntry) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaEntry
impl Serialize for SchemaEntry
impl StructuralPartialEq for SchemaEntry
Auto Trait Implementations§
impl Freeze for SchemaEntry
impl RefUnwindSafe for SchemaEntry
impl Send for SchemaEntry
impl Sync for SchemaEntry
impl Unpin for SchemaEntry
impl UnsafeUnpin for SchemaEntry
impl UnwindSafe for SchemaEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more