pub struct DeclaredReach {
pub agent: String,
pub version: String,
pub digest: Digest,
pub grants: Vec<ReachGrant>,
pub budgets: Value,
pub max_delegation_depth: Option<u8>,
}Expand description
A callee’s declaration, as much of it as bounds what the callee may do.
Fields§
§agent: String§version: String§digest: DigestThe revision this approval covers.
grants: Vec<ReachGrant>Everything the callee may call.
budgets: ValueIts declared ceilings, as written.
max_delegation_depth: Option<u8>How many further hops its own runs may delegate, when it says.
Trait Implementations§
Source§impl Clone for DeclaredReach
impl Clone for DeclaredReach
Source§impl Debug for DeclaredReach
impl Debug for DeclaredReach
Source§impl<'de> Deserialize<'de> for DeclaredReach
impl<'de> Deserialize<'de> for DeclaredReach
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
impl Eq for DeclaredReach
Source§impl PartialEq for DeclaredReach
impl PartialEq for DeclaredReach
Source§impl Serialize for DeclaredReach
impl Serialize for DeclaredReach
impl StructuralPartialEq for DeclaredReach
Auto Trait Implementations§
impl Freeze for DeclaredReach
impl RefUnwindSafe for DeclaredReach
impl Send for DeclaredReach
impl Sync for DeclaredReach
impl Unpin for DeclaredReach
impl UnsafeUnpin for DeclaredReach
impl UnwindSafe for DeclaredReach
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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 moreCreates a shared type from an unshared type.