pub struct Policy {
pub content: Content,
}Expand description
Everything that shapes a byte value on its way out.
There is deliberately no Default. The field is a published setting, and a
default written here would be a second copy of a value the registry already
carries — which is exactly how a published setting comes to have no effect.
A value of this type can only be built from the registry, so a call site
cannot quietly opt out of the caller’s configuration.
Fields§
§content: ContentWhether the content itself leaves.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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