pub struct BoundedJson(/* private fields */);Expand description
Opaque, host-supplied JSON (signal payloads, task metadata) with a bound on how much of it the kernel is willing to carry. Unbounded free-form JSON is the one shape that can defeat every downstream size budget, so the bound lives at the boundary type, not at each callsite.
Implementations§
Trait Implementations§
Source§impl Clone for BoundedJson
impl Clone for BoundedJson
Source§fn clone(&self) -> BoundedJson
fn clone(&self) -> BoundedJson
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 BoundedJson
impl Debug for BoundedJson
Source§impl Default for BoundedJson
impl Default for BoundedJson
Source§fn default() -> BoundedJson
fn default() -> BoundedJson
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BoundedJson
impl<'de> Deserialize<'de> for BoundedJson
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BoundedJson
impl PartialEq for BoundedJson
Source§impl Serialize for BoundedJson
impl Serialize for BoundedJson
impl StructuralPartialEq for BoundedJson
Auto Trait Implementations§
impl Freeze for BoundedJson
impl RefUnwindSafe for BoundedJson
impl Send for BoundedJson
impl Sync for BoundedJson
impl Unpin for BoundedJson
impl UnsafeUnpin for BoundedJson
impl UnwindSafe for BoundedJson
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