#[non_exhaustive]pub struct Int64RangeMatch {
pub range_end: Option<i64>,
pub range_start: Option<i64>,
/* private fields */
}Available on crate features
region-url-maps or url-maps only.Expand description
HttpRouteRuleMatch criteria for field values that must stay within the specified integer range.
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.range_end: Option<i64>The end of the range (exclusive) in signed long integer format.
range_start: Option<i64>The start of the range (inclusive) in signed long integer format.
Implementations§
Source§impl Int64RangeMatch
impl Int64RangeMatch
pub fn new() -> Self
Sourcepub fn set_range_end<T>(self, v: T) -> Self
pub fn set_range_end<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_range_end<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_range_end<T>(self, v: Option<T>) -> Self
Sourcepub fn set_range_start<T>(self, v: T) -> Self
pub fn set_range_start<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_range_start<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_range_start<T>(self, v: Option<T>) -> Self
Sets or clears the value of range_start.
§Example
ⓘ
let x = Int64RangeMatch::new().set_or_clear_range_start(Some(42));
let x = Int64RangeMatch::new().set_or_clear_range_start(None::<i32>);Trait Implementations§
Source§impl Clone for Int64RangeMatch
impl Clone for Int64RangeMatch
Source§fn clone(&self) -> Int64RangeMatch
fn clone(&self) -> Int64RangeMatch
Returns a duplicate of the value. Read more
1.0.0 · 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 Int64RangeMatch
impl Debug for Int64RangeMatch
Source§impl Default for Int64RangeMatch
impl Default for Int64RangeMatch
Source§fn default() -> Int64RangeMatch
fn default() -> Int64RangeMatch
Returns the “default value” for a type. Read more
Source§impl Message for Int64RangeMatch
impl Message for Int64RangeMatch
Source§impl PartialEq for Int64RangeMatch
impl PartialEq for Int64RangeMatch
impl StructuralPartialEq for Int64RangeMatch
Auto Trait Implementations§
impl Freeze for Int64RangeMatch
impl RefUnwindSafe for Int64RangeMatch
impl Send for Int64RangeMatch
impl Sync for Int64RangeMatch
impl Unpin for Int64RangeMatch
impl UnwindSafe for Int64RangeMatch
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