pub struct AdminAclOptions {
pub did: Option<String>,
pub label: Option<String>,
pub expires_at: Option<u64>,
pub expires_duration: Option<String>,
}Expand description
Options for optionally creating a context-scoped admin ACL entry as
part of pnm contexts create.
Omit the entire struct to create the context without touching the ACL —
the historical behaviour. Supply a AdminAclOptions::did to atomically
create an admin-role ACL entry scoped to the new context in the same
CLI invocation.
Setting AdminAclOptions::expires_at flips the entry from permanent
to a setup ACL that auto-expires (pruned by the VTA’s ACL sweeper) if
the admin never authenticates and rotates to a fresh did:key.
Fields§
§did: Option<String>DID to grant admin access to. Must start with did:.
label: Option<String>Human-readable label stored on the ACL entry.
expires_at: Option<u64>Unix-epoch seconds at which the entry auto-expires. None = permanent.
expires_duration: Option<String>Raw --admin-expires input (e.g. "1h"). Preserved alongside the
resolved expires_at so conflict hints can re-emit the operator’s
original duration verbatim instead of a drift-skewed seconds value.
Trait Implementations§
Source§impl Clone for AdminAclOptions
impl Clone for AdminAclOptions
Source§fn clone(&self) -> AdminAclOptions
fn clone(&self) -> AdminAclOptions
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 AdminAclOptions
impl Debug for AdminAclOptions
Source§impl Default for AdminAclOptions
impl Default for AdminAclOptions
Source§fn default() -> AdminAclOptions
fn default() -> AdminAclOptions
Auto Trait Implementations§
impl Freeze for AdminAclOptions
impl RefUnwindSafe for AdminAclOptions
impl Send for AdminAclOptions
impl Sync for AdminAclOptions
impl Unpin for AdminAclOptions
impl UnsafeUnpin for AdminAclOptions
impl UnwindSafe for AdminAclOptions
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for Twhere
T: InitializableFromZeroed + ?Sized,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InitializableFromZeroed for Twhere
T: Default,
impl<T> InitializableFromZeroed for Twhere
T: Default,
Source§unsafe fn initialize(place: *mut T)
unsafe fn initialize(place: *mut T)
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
T.