pub struct SignedGrantPolicy {
pub policy: GrantPolicy,
pub public_key: String,
pub signature: String,
}Expand description
Signed durable grant intent. Verification authenticates policy bytes only; resume must still intersect the policy with the current authority epoch, workspace facts, and configured ceilings before minting a new capability.
The embedded public key is not a trust anchor — anyone can re-sign a
rewritten policy with their own key. Callers MUST verify against the key
they trust via SignedGrantPolicy::verify_against.
Fields§
§policy: GrantPolicy§public_key: String§signature: StringImplementations§
Source§impl SignedGrantPolicy
impl SignedGrantPolicy
Trait Implementations§
Source§impl Clone for SignedGrantPolicy
impl Clone for SignedGrantPolicy
Source§fn clone(&self) -> SignedGrantPolicy
fn clone(&self) -> SignedGrantPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignedGrantPolicy
impl Debug for SignedGrantPolicy
Source§impl<'de> Deserialize<'de> for SignedGrantPolicy
impl<'de> Deserialize<'de> for SignedGrantPolicy
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
Source§impl PartialEq for SignedGrantPolicy
impl PartialEq for SignedGrantPolicy
Source§fn eq(&self, other: &SignedGrantPolicy) -> bool
fn eq(&self, other: &SignedGrantPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SignedGrantPolicy
impl Serialize for SignedGrantPolicy
impl StructuralPartialEq for SignedGrantPolicy
Auto Trait Implementations§
impl Freeze for SignedGrantPolicy
impl RefUnwindSafe for SignedGrantPolicy
impl Send for SignedGrantPolicy
impl Sync for SignedGrantPolicy
impl Unpin for SignedGrantPolicy
impl UnsafeUnpin for SignedGrantPolicy
impl UnwindSafe for SignedGrantPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.