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 RefUnwindSafe for BuildAccessGrant
impl Send for BuildAccessGrant
impl Sync for BuildAccessGrant
impl Unpin for BuildAccessGrant
impl UnsafeUnpin for BuildAccessGrant
impl UnwindSafe for BuildAccessGrant
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