pub enum McpValidationTarget {
Default,
Full,
Unwrapped,
}Expand description
Koruma target selector recorded for an MCP validation rule.
Variants§
Default
Koruma selected the default target for the field type.
Full
The validator targets the full field value, such as an Option<T>.
Unwrapped
The validator targets the unwrapped field value.
Implementations§
Trait Implementations§
Source§impl Clone for McpValidationTarget
impl Clone for McpValidationTarget
impl Copy for McpValidationTarget
Source§impl Debug for McpValidationTarget
impl Debug for McpValidationTarget
impl Eq for McpValidationTarget
Source§impl<'_derivative_strum> From<&'_derivative_strum McpValidationTarget> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum McpValidationTarget> for &'static str
Source§fn from(x: &'_derivative_strum McpValidationTarget) -> &'static str
fn from(x: &'_derivative_strum McpValidationTarget) -> &'static str
Converts to this type from the input type.
Source§impl From<McpValidationTarget> for &'static str
impl From<McpValidationTarget> for &'static str
Source§fn from(x: McpValidationTarget) -> &'static str
fn from(x: McpValidationTarget) -> &'static str
Converts to this type from the input type.
Source§impl PartialEq for McpValidationTarget
impl PartialEq for McpValidationTarget
impl StructuralPartialEq for McpValidationTarget
Auto Trait Implementations§
impl Freeze for McpValidationTarget
impl RefUnwindSafe for McpValidationTarget
impl Send for McpValidationTarget
impl Sync for McpValidationTarget
impl Unpin for McpValidationTarget
impl UnsafeUnpin for McpValidationTarget
impl UnwindSafe for McpValidationTarget
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,
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.