#[non_exhaustive]pub struct TemplateMatch {
pub representation_id: String,
pub number: Option<u64>,
pub time: Option<u64>,
pub bandwidth: Option<u64>,
}Expand description
The identifiers a URL was matched against a template: the exact inverse of
substitute.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.representation_id: StringThe matched $RepresentationID$ value (empty if the template carried
none).
number: Option<u64>The matched $Number$ value, if present.
time: Option<u64>The matched $Time$ value, if present.
bandwidth: Option<u64>The matched $Bandwidth$ value, if present.
Trait Implementations§
Source§impl Clone for TemplateMatch
impl Clone for TemplateMatch
Source§fn clone(&self) -> TemplateMatch
fn clone(&self) -> TemplateMatch
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 TemplateMatch
impl Debug for TemplateMatch
Source§impl Default for TemplateMatch
impl Default for TemplateMatch
Source§fn default() -> TemplateMatch
fn default() -> TemplateMatch
Returns the “default value” for a type. Read more
impl Eq for TemplateMatch
Source§impl PartialEq for TemplateMatch
impl PartialEq for TemplateMatch
impl StructuralPartialEq for TemplateMatch
Auto Trait Implementations§
impl Forget for TemplateMatch
impl Freeze for TemplateMatch
impl Move for TemplateMatch
impl RefUnwindSafe for TemplateMatch
impl Send for TemplateMatch
impl Sync for TemplateMatch
impl Unpin for TemplateMatch
impl UnsafeUnpin for TemplateMatch
impl UnwindSafe for TemplateMatch
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