pub struct MmdsContents(pub Value);Expand description
PUT /mmds body — arbitrary user JSON tree, capped by --mmds-size-limit.
We serialize the tree back through serde_json::Value so unknown structure is
preserved (the MMDS data store is dynamic; unlike every other endpoint here, it
has no fixed schema). The size cap is enforced by the RequestBodyLimitLayer
middleware against --mmds-size-limit.
Tuple Fields§
§0: ValueImplementations§
Trait Implementations§
Source§impl Clone for MmdsContents
impl Clone for MmdsContents
Source§fn clone(&self) -> MmdsContents
fn clone(&self) -> MmdsContents
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 MmdsContents
impl Debug for MmdsContents
Source§impl<'de> Deserialize<'de> for MmdsContents
impl<'de> Deserialize<'de> for MmdsContents
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 MmdsContents
impl RefUnwindSafe for MmdsContents
impl Send for MmdsContents
impl Sync for MmdsContents
impl Unpin for MmdsContents
impl UnsafeUnpin for MmdsContents
impl UnwindSafe for MmdsContents
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