pub enum WebFetchMode {
Restricted,
Whitelist,
}Expand description
Web fetch security mode
Variants§
Restricted
Blocklist mode: allow by default, block listed domains (default)
Whitelist
Allowlist mode: block by default, allow only listed domains
Trait Implementations§
Source§impl Clone for WebFetchMode
impl Clone for WebFetchMode
impl Copy for WebFetchMode
Source§impl Debug for WebFetchMode
impl Debug for WebFetchMode
Source§impl Default for WebFetchMode
impl Default for WebFetchMode
Source§impl<'de> Deserialize<'de> for WebFetchMode
impl<'de> Deserialize<'de> for WebFetchMode
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 WebFetchMode
Source§impl JsonSchema for WebFetchMode
impl JsonSchema for WebFetchMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for WebFetchMode
impl PartialEq for WebFetchMode
Source§impl Serialize for WebFetchMode
impl Serialize for WebFetchMode
impl StructuralPartialEq for WebFetchMode
Auto Trait Implementations§
impl Freeze for WebFetchMode
impl RefUnwindSafe for WebFetchMode
impl Send for WebFetchMode
impl Sync for WebFetchMode
impl Unpin for WebFetchMode
impl UnsafeUnpin for WebFetchMode
impl UnwindSafe for WebFetchMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.