pub struct BuildAccessGrant {
pub operator_did: String,
pub robot_did: String,
pub resource: String,
pub operations: Vec<String>,
pub zone: Option<String>,
pub granted_at: String,
pub valid_until: Option<String>,
}Expand description
Parameters for build_access_grant. The signer is the operator; the grant
names the robot, the resource, the permitted operations, an optional zone, and
a validity window. valid_until, when set, bounds the window (the wrapper
derives it from a valid_seconds lifetime added to granted_at, keeping the
core’s clock caller-supplied).
Fields§
§operator_did: String§robot_did: String§resource: String§operations: Vec<String>§zone: Option<String>§granted_at: String§valid_until: Option<String>Trait Implementations§
Source§impl Clone for BuildAccessGrant
impl Clone for BuildAccessGrant
Auto Trait Implementations§
impl Forget for BuildAccessGrant
impl Freeze for BuildAccessGrant
impl Move for BuildAccessGrant
impl RefUnwindSafe for BuildAccessGrant
impl Send for BuildAccessGrantwhere
RawVecInner: Send,
impl Sync for BuildAccessGrantwhere
RawVecInner: Sync,
impl Unpin for BuildAccessGrant
impl UnsafeUnpin for BuildAccessGrantwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for BuildAccessGrantwhere
RawVecInner: UnwindSafe,
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