pub struct ScopeInfo {
pub name: String,
pub hashes: Vec<String>,
pub grants: Vec<String>,
pub withdrawn: Vec<String>,
pub hash_count: usize,
pub grant_count: usize,
pub withdrawn_count: usize,
}Expand description
One scope in a BlobScopeList: its name + the hashes it contains + the principals it
grants. Flat vocabulary ONLY — no EndpointId/pubkey/ALPN. Additive-only.
Fields§
§name: String§hashes: Vec<String>§grants: Vec<String>§withdrawn: Vec<String>Hashes deliberately WITHDRAWN from this scope (#107): blob_unpublish was called, and
blob_republish of these into THIS scope is refused with ERR_BLOB_WITHDRAWN. Cleared
only by a deliberate blob_publish {scope, path}. Additive — omitted when empty, so a
pre-api_minor 19 client sees exactly what it saw before.
hash_count: usizeSize of hashes — always present, even when counts_only empties the vector (#84b).
grant_count: usizeSize of grants.
withdrawn_count: usizeSize of withdrawn.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScopeInfo
impl<'de> Deserialize<'de> for ScopeInfo
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScopeInfo
impl StructuralPartialEq for ScopeInfo
Auto Trait Implementations§
impl Freeze for ScopeInfo
impl RefUnwindSafe for ScopeInfo
impl Send for ScopeInfo
impl Sync for ScopeInfo
impl Unpin for ScopeInfo
impl UnsafeUnpin for ScopeInfo
impl UnwindSafe for ScopeInfo
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