pub enum UrlOrRule {
Str(String),
Rule(Box<Rule>),
}Expand description
URL 字段:可为字符串模板,或一条规则。
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UrlOrRule
impl<'de> Deserialize<'de> for UrlOrRule
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
impl Eq for UrlOrRule
impl StructuralPartialEq for UrlOrRule
Auto Trait Implementations§
impl Freeze for UrlOrRule
impl RefUnwindSafe for UrlOrRule
impl Send for UrlOrRule
impl Sync for UrlOrRule
impl Unpin for UrlOrRule
impl UnsafeUnpin for UrlOrRule
impl UnwindSafe for UrlOrRule
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