pub enum PostPolicyValue<'a> {
Anything,
StartsWith(Cow<'a, str>),
Range(u32, u32),
Exact(Cow<'a, str>),
}Variants§
Anything
Shortcut for StartsWith(“”.to_string())
StartsWith(Cow<'a, str>)
A string starting with a value
Range(u32, u32)
A range of integer values. Only valid for some fields
Exact(Cow<'a, str>)
An exact string value
Trait Implementations§
Source§impl<'a> Clone for PostPolicyValue<'a>
impl<'a> Clone for PostPolicyValue<'a>
Source§fn clone(&self) -> PostPolicyValue<'a>
fn clone(&self) -> PostPolicyValue<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for PostPolicyValue<'a>
impl<'a> RefUnwindSafe for PostPolicyValue<'a>
impl<'a> Send for PostPolicyValue<'a>
impl<'a> Sync for PostPolicyValue<'a>
impl<'a> Unpin for PostPolicyValue<'a>
impl<'a> UnwindSafe for PostPolicyValue<'a>
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