Struct kubizone_common::Pattern
source · pub struct Pattern(/* private fields */);Implementations§
source§impl Pattern
impl Pattern
sourcepub fn iter(&self) -> impl Iterator<Item = &PatternSegment> + '_
pub fn iter(&self) -> impl Iterator<Item = &PatternSegment> + '_
Iterates over the PatternSegments of the pattern.
sourcepub fn with_origin(&self, origin: &FullyQualifiedDomainName) -> Pattern
pub fn with_origin(&self, origin: &FullyQualifiedDomainName) -> Pattern
Returns a new pattern with the origin appended.
sourcepub fn matches(&self, domain: &FullyQualifiedDomainName) -> bool
pub fn matches(&self, domain: &FullyQualifiedDomainName) -> bool
Returns true if the papttern matches the given domain.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Pattern
impl<'de> Deserialize<'de> for Pattern
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
source§impl FromIterator<PatternSegment> for Pattern
impl FromIterator<PatternSegment> for Pattern
source§fn from_iter<T: IntoIterator<Item = PatternSegment>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PatternSegment>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl JsonSchema for Pattern
impl JsonSchema for Pattern
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl Ord for Pattern
impl Ord for Pattern
source§impl PartialEq for Pattern
impl PartialEq for Pattern
source§impl PartialOrd for Pattern
impl PartialOrd for Pattern
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Pattern
impl StructuralPartialEq for Pattern
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)