pub struct AclEntry {
pub did: String,
pub role: Role,
pub label: Option<String>,
pub created_at: u64,
pub max_total_size: Option<u64>,
pub max_did_count: Option<u64>,
pub domains: DomainScope,
}Expand description
An entry in the Access Control List.
Fields§
§did: String§role: Role§label: Option<String>§created_at: u64§max_total_size: Option<u64>§max_did_count: Option<u64>§domains: DomainScopeWhich domains this caller is authorised to operate on. Per
docs/multi-domain-spec.md §3, Admin and Service roles
short-circuit this check upstream — domains is the per-Owner
authorisation rule.
#[serde(default)] keeps backwards-compat: v0.6-vintage ACL
entries lacking this field deserialise as DomainScope::All.
T22 flips the default for newly-created Owner entries to
AllowedWithDefault([system_default], system_default).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AclEntry
impl<'de> Deserialize<'de> for AclEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AclEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AclEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AclEntry> for AclEntryResponse
impl From<AclEntry> for AclEntryResponse
Source§fn from(e: AclEntry) -> AclEntryResponse
fn from(e: AclEntry) -> AclEntryResponse
Converts to this type from the input type.
Source§impl Serialize for AclEntry
impl Serialize for AclEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AclEntry
impl RefUnwindSafe for AclEntry
impl Send for AclEntry
impl Sync for AclEntry
impl Unpin for AclEntry
impl UnsafeUnpin for AclEntry
impl UnwindSafe for AclEntry
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