pub struct PluginVerdict {
pub allow: bool,
pub reason: Option<String>,
}Expand description
Result from a plugin evaluation.
Fields§
§allow: boolWhether the plugin allows the action.
reason: Option<String>Optional reason string (required when allow is false).
Implementations§
Source§impl PluginVerdict
impl PluginVerdict
Sourcepub fn validate(&self) -> Result<(), PluginError>
pub fn validate(&self) -> Result<(), PluginError>
Validate the verdict, ensuring bounded reason length.
Trait Implementations§
Source§impl Clone for PluginVerdict
impl Clone for PluginVerdict
Source§fn clone(&self) -> PluginVerdict
fn clone(&self) -> PluginVerdict
Returns a duplicate of the value. Read more
1.0.0 · 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 PluginVerdict
impl Debug for PluginVerdict
Source§impl<'de> Deserialize<'de> for PluginVerdict
impl<'de> Deserialize<'de> for PluginVerdict
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
Auto Trait Implementations§
impl Freeze for PluginVerdict
impl RefUnwindSafe for PluginVerdict
impl Send for PluginVerdict
impl Sync for PluginVerdict
impl Unpin for PluginVerdict
impl UnsafeUnpin for PluginVerdict
impl UnwindSafe for PluginVerdict
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