pub struct VerificationRule {
pub target_contract_id: String,
pub target_provider_id: Option<String>,
pub verifier_provider_id: String,
pub verifier_args: Value,
}Expand description
Route one completed capability call to a verifier provider.
Fields§
§target_contract_id: StringContract ID of the capability calls whose results should be verified.
target_provider_id: Option<String>Optional provider restriction; omission matches any provider of the contract.
verifier_provider_id: StringProvider implementing the shared verification contract for matched calls.
verifier_args: ValueExtra JSON object passed to the verifier alongside the original call context.
Trait Implementations§
Source§impl Clone for VerificationRule
impl Clone for VerificationRule
Source§impl Debug for VerificationRule
impl Debug for VerificationRule
Source§impl<'de> Deserialize<'de> for VerificationRule
impl<'de> Deserialize<'de> for VerificationRule
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 VerificationRule
impl PartialEq for VerificationRule
impl StructuralPartialEq for VerificationRule
Auto Trait Implementations§
impl Freeze for VerificationRule
impl RefUnwindSafe for VerificationRule
impl Send for VerificationRule
impl Sync for VerificationRule
impl Unpin for VerificationRule
impl UnsafeUnpin for VerificationRule
impl UnwindSafe for VerificationRule
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].