pub struct WildcardPattern(/* private fields */);Expand description
Current wildcard grammar shared by authored configuration and frozen protocol values.
Implementations§
Source§impl WildcardPattern
impl WildcardPattern
pub const MAX_BYTES: usize = 4096
pub const WORKSPACE_DIR_EXPRESSION: &'static str = "${workspace_dir}"
pub const JSON_SCHEMA_MAX_UTF8_BYTES_EXTENSION: &'static str = "x-cookie-agent-maxUtf8Bytes"
pub const JSON_SCHEMA_PATTERN: &'static str = "^(?:\\$\\{workspace_dir\\}|[^\\u0000-\\u001f\\u007f-\\u009f\\\\\\[\\]\\{\\}])+$"
pub fn new(value: impl Into<String>) -> Result<WildcardPattern, IdentityError>
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl Clone for WildcardPattern
impl Clone for WildcardPattern
Source§fn clone(&self) -> WildcardPattern
fn clone(&self) -> WildcardPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WildcardPattern
impl Debug for WildcardPattern
Source§impl<'de> Deserialize<'de> for WildcardPattern
impl<'de> Deserialize<'de> for WildcardPattern
Source§fn deserialize<D>(
deserializer: D,
) -> Result<WildcardPattern, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<WildcardPattern, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WildcardPattern
impl Display for WildcardPattern
impl Eq for WildcardPattern
Source§impl FromStr for WildcardPattern
impl FromStr for WildcardPattern
Source§type Err = IdentityError
type Err = IdentityError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<WildcardPattern, <WildcardPattern as FromStr>::Err>
fn from_str( value: &str, ) -> Result<WildcardPattern, <WildcardPattern as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for WildcardPattern
impl Hash for WildcardPattern
Source§impl JsonSchema for WildcardPattern
impl JsonSchema for WildcardPattern
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§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl Ord for WildcardPattern
impl Ord for WildcardPattern
Source§fn cmp(&self, other: &WildcardPattern) -> Ordering
fn cmp(&self, other: &WildcardPattern) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WildcardPattern
impl PartialEq for WildcardPattern
Source§fn eq(&self, other: &WildcardPattern) -> bool
fn eq(&self, other: &WildcardPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WildcardPattern
impl PartialOrd for WildcardPattern
Source§impl Serialize for WildcardPattern
impl Serialize for WildcardPattern
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for WildcardPattern
Auto Trait Implementations§
impl Freeze for WildcardPattern
impl RefUnwindSafe for WildcardPattern
impl Send for WildcardPattern
impl Sync for WildcardPattern
impl Unpin for WildcardPattern
impl UnsafeUnpin for WildcardPattern
impl UnwindSafe for WildcardPattern
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