pub struct DecodePolicy {
pub mode: DecodeMode,
pub limits: ResourceLimits,
}Expand description
Decode mode and resource ceilings.
Fields§
§mode: DecodeModeHow mandatory transfer losses are handled.
limits: ResourceLimitsThe absolute ceilings.
Implementations§
Trait Implementations§
Source§impl Clone for DecodePolicy
impl Clone for DecodePolicy
Source§fn clone(&self) -> DecodePolicy
fn clone(&self) -> DecodePolicy
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 moreimpl Copy for DecodePolicy
Source§impl Debug for DecodePolicy
impl Debug for DecodePolicy
Source§impl Default for DecodePolicy
impl Default for DecodePolicy
Source§impl<'de> Deserialize<'de> for DecodePolicy
impl<'de> Deserialize<'de> for DecodePolicy
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 DecodePolicy
Source§impl JsonSchema for DecodePolicy
impl JsonSchema for DecodePolicy
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 DecodePolicy
impl PartialEq for DecodePolicy
Source§impl Serialize for DecodePolicy
impl Serialize for DecodePolicy
impl StructuralPartialEq for DecodePolicy
Auto Trait Implementations§
impl Freeze for DecodePolicy
impl RefUnwindSafe for DecodePolicy
impl Send for DecodePolicy
impl Sync for DecodePolicy
impl Unpin for DecodePolicy
impl UnsafeUnpin for DecodePolicy
impl UnwindSafe for DecodePolicy
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