pub enum TrustState {
Trusted,
Untrusted,
Changed,
}Expand description
Whether a hook may run.
Variants§
Trusted
A person trusted these exact bytes.
Untrusted
Never trusted here.
Changed
Trusted once; the definition or a file it runs changed since.
Implementations§
Trait Implementations§
Source§impl Clone for TrustState
impl Clone for TrustState
impl Copy for TrustState
Source§impl Debug for TrustState
impl Debug for TrustState
Source§impl<'de> Deserialize<'de> for TrustState
impl<'de> Deserialize<'de> for TrustState
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 TrustState
Source§impl JsonSchema for TrustState
impl JsonSchema for TrustState
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 moreSource§impl PartialEq for TrustState
impl PartialEq for TrustState
Source§impl Serialize for TrustState
impl Serialize for TrustState
impl StructuralPartialEq for TrustState
Auto Trait Implementations§
impl Forget for TrustState
impl Freeze for TrustState
impl RefUnwindSafe for TrustState
impl Send for TrustState
impl Sync for TrustState
impl Unpin for TrustState
impl UnsafeUnpin for TrustState
impl UnwindSafe for TrustState
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