pub enum ReadEvalEncodePolicy {
Forbid,
AllowExplicit {
expected_shape: Symbol,
allowed_capabilities: Vec<CapabilityName>,
},
}Expand description
Whether read-eval output may be emitted.
Variants§
Forbid
Forbid read-eval output.
AllowExplicit
Allow only explicitly declared read-eval output.
The shape and capability fields describe the expected admitted result and maximum powers for the eval body. Codecs must not treat this as a broad permission to emit arbitrary read-eval syntax.
Fields
§
allowed_capabilities: Vec<CapabilityName>Maximum capabilities the emitted eval body may request.
Trait Implementations§
Source§impl Clone for ReadEvalEncodePolicy
impl Clone for ReadEvalEncodePolicy
Source§fn clone(&self) -> ReadEvalEncodePolicy
fn clone(&self) -> ReadEvalEncodePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReadEvalEncodePolicy
impl Debug for ReadEvalEncodePolicy
impl Eq for ReadEvalEncodePolicy
Source§impl PartialEq for ReadEvalEncodePolicy
impl PartialEq for ReadEvalEncodePolicy
impl StructuralPartialEq for ReadEvalEncodePolicy
Auto Trait Implementations§
impl Freeze for ReadEvalEncodePolicy
impl RefUnwindSafe for ReadEvalEncodePolicy
impl Send for ReadEvalEncodePolicy
impl Sync for ReadEvalEncodePolicy
impl Unpin for ReadEvalEncodePolicy
impl UnsafeUnpin for ReadEvalEncodePolicy
impl UnwindSafe for ReadEvalEncodePolicy
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