pub struct VarSummary {
pub id: VarId,
pub name: String,
pub group: Group,
pub kind: VarKind,
pub value_len: usize,
pub linked_projects: usize,
pub updated_at: OffsetDateTime,
}Expand description
One row of dashboard data.
Deliberately flat and value-free: the dashboard never holds a
secret value in memory, only its metadata. Implementations of
VarProvider derive this struct from whatever backing store
they wrap.
Fields§
§id: VarIdStable identifier of the variable.
name: StringDisplay name (e.g. DATABASE_URL).
group: GroupLogical group the variable belongs to.
kind: VarKindWhether the value lives in the keyring (secret) or alongside metadata (plain).
value_len: usizeLength of the underlying value, in characters (not bytes). Surfaced in the dashboard as a privacy-preserving size hint.
linked_projects: usizeHow many projects currently link to this variable.
updated_at: OffsetDateTimeLast time the variable’s metadata changed.
Trait Implementations§
Source§impl Clone for VarSummary
impl Clone for VarSummary
Source§fn clone(&self) -> VarSummary
fn clone(&self) -> VarSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VarSummary
impl Debug for VarSummary
Source§impl PartialEq for VarSummary
impl PartialEq for VarSummary
Source§fn eq(&self, other: &VarSummary) -> bool
fn eq(&self, other: &VarSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for VarSummary
impl StructuralPartialEq for VarSummary
Auto Trait Implementations§
impl Freeze for VarSummary
impl RefUnwindSafe for VarSummary
impl Send for VarSummary
impl Sync for VarSummary
impl Unpin for VarSummary
impl UnsafeUnpin for VarSummary
impl UnwindSafe for VarSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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