pub struct RepoVisibilityV1 {
pub visibility: StoredVisibility,
pub last_created_ms: u64,
pub last_statement_id: Option<String>,
pub changed_ms: Option<u64>,
}Expand description
A repository’s stored visibility (SPEC-WRITE-GRANTS §9.1). A missing
rv row inherits the deployment default; the row may exist before rr does.
Fields§
§visibility: StoredVisibilityThe repository’s visibility.
last_created_ms: u64The newer of the last accepted statement’s created and the last
envelope write’s time; 0 before any write.
last_statement_id: Option<String>The last accepted statement’s id, 64 lowercase hex. The key is
always present in a stored row (null when none): a row missing it
is corrupt.
changed_ms: Option<u64>The server clock when the row last changed visibility (envelope or
statement), Unix milliseconds. URL tokens issued at or before it are
refused (SPEC-WRITE-GRANTS §9.4). Absent in a row stored before the
field existed; read it through Self::visibility_changed_ms.
Implementations§
Source§impl RepoVisibilityV1
impl RepoVisibilityV1
Sourcepub fn visibility_changed_ms(&self) -> u64
pub fn visibility_changed_ms(&self) -> u64
The time of the last visibility change. A legacy row has none, so
its last_created_ms stands in: the envelope path stored server
time there and the statement path the accepted created, never
earlier than the change, so the fallback fails closed.