pub struct HttpAllow {
pub host: String,
pub scheme: Option<String>,
pub methods: Option<Vec<String>>,
pub ports: Option<Vec<u16>>,
}Expand description
One entry in a [std.capabilities."wasi:http"].allow array.
host is required (exact match, *.suffix wildcard, or * for any).
Other fields are optional narrowers. Declarations never carry cidr,
except_ports, or deny — those are user-policy concerns.
Fields§
§host: String§scheme: Option<String>§methods: Option<Vec<String>>§ports: Option<Vec<u16>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for HttpAllow
impl<'de> Deserialize<'de> for HttpAllow
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
Auto Trait Implementations§
impl Freeze for HttpAllow
impl RefUnwindSafe for HttpAllow
impl Send for HttpAllow
impl Sync for HttpAllow
impl Unpin for HttpAllow
impl UnsafeUnpin for HttpAllow
impl UnwindSafe for HttpAllow
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