#[non_exhaustive]pub enum GrantMatch {
Pattern,
Exact,
}Expand description
How an allow’s content meets a call’s.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pattern
As a settings.json rule’s content is: *, prefix:*, path and URL
patterns.
Exact
Only a call whose content is the same text.
Implementations§
Source§impl GrantMatch
impl GrantMatch
pub fn is_pattern(&self) -> bool
Trait Implementations§
Source§impl Clone for GrantMatch
impl Clone for GrantMatch
impl Copy for GrantMatch
Source§impl Debug for GrantMatch
impl Debug for GrantMatch
Source§impl Default for GrantMatch
impl Default for GrantMatch
Source§impl<'de> Deserialize<'de> for GrantMatch
impl<'de> Deserialize<'de> for GrantMatch
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 GrantMatch
Source§impl JsonSchema for GrantMatch
impl JsonSchema for GrantMatch
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 GrantMatch
impl PartialEq for GrantMatch
Source§impl Serialize for GrantMatch
impl Serialize for GrantMatch
impl StructuralPartialEq for GrantMatch
Auto Trait Implementations§
impl Forget for GrantMatch
impl Freeze for GrantMatch
impl Move for GrantMatch
impl RefUnwindSafe for GrantMatch
impl Send for GrantMatch
impl Sync for GrantMatch
impl Unpin for GrantMatch
impl UnsafeUnpin for GrantMatch
impl UnwindSafe for GrantMatch
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