pub struct ContentPolicy {
pub max_message_bytes: usize,
pub max_body_bytes: usize,
pub max_header_ids: usize,
pub allow_binary_payloads: bool,
pub block_executable_magic: bool,
}Expand description
Content safety policy.
Fields§
§max_message_bytes: usizeMax full message size.
max_body_bytes: usizeMax body size.
max_header_ids: usizeMax header hop count.
allow_binary_payloads: boolAllow non-text/binary payloads.
block_executable_magic: boolDrop likely executable payloads unless peer is trusted.
Trait Implementations§
Source§impl Clone for ContentPolicy
impl Clone for ContentPolicy
Source§fn clone(&self) -> ContentPolicy
fn clone(&self) -> ContentPolicy
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 moreSource§impl Debug for ContentPolicy
impl Debug for ContentPolicy
Source§impl<'de> Deserialize<'de> for ContentPolicy
impl<'de> Deserialize<'de> for ContentPolicy
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 ContentPolicy
impl RefUnwindSafe for ContentPolicy
impl Send for ContentPolicy
impl Sync for ContentPolicy
impl Unpin for ContentPolicy
impl UnsafeUnpin for ContentPolicy
impl UnwindSafe for ContentPolicy
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