pub struct HttpRule {
pub net: NetworkRule,
pub scheme: Option<String>,
pub methods: Option<Vec<String>>,
}Expand description
One allow-or-deny entry in an HTTP policy.
Fields§
§net: NetworkRuleHost / port / CIDR fields. Network-level (no HTTP awareness).
scheme: Option<String>Required URI scheme ("http" / "https"), if set.
methods: Option<Vec<String>>Allowed HTTP methods (case-insensitive), if set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HttpRule
impl<'de> Deserialize<'de> for HttpRule
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 StructuralPartialEq for HttpRule
Auto Trait Implementations§
impl Freeze for HttpRule
impl RefUnwindSafe for HttpRule
impl Send for HttpRule
impl Sync for HttpRule
impl Unpin for HttpRule
impl UnsafeUnpin for HttpRule
impl UnwindSafe for HttpRule
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