pub enum Verdict {
Allow(AllowVerdict),
Deny(DenyVerdict),
}Variants§
Allow(AllowVerdict)
Deny(DenyVerdict)
Implementations§
Source§impl Verdict
impl Verdict
Sourcepub fn allow(obligations: Vec<Obligation>) -> Self
pub fn allow(obligations: Vec<Obligation>) -> Self
Allow with explicit obligations. The data plane builds these from the matched service instance (inject its credential, or pass the consumer’s through).
Sourcepub fn inject(id: impl Into<String>) -> Obligation
pub fn inject(id: impl Into<String>) -> Obligation
An obligation to inject the named credential upstream.
Sourcepub fn passthrough() -> Obligation
pub fn passthrough() -> Obligation
An obligation to forward the consumer’s own credential unchanged.
Sourcepub fn deny(reason: DenyReason) -> Self
pub fn deny(reason: DenyReason) -> Self
Deny with the given reason.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Verdict
impl<'de> Deserialize<'de> for Verdict
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 JsonSchema for Verdict
impl JsonSchema for Verdict
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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