pub struct EmptyPayload;Expand description
Placeholder for OCPP-J’s errorDetails, which the specification
deliberately leaves undefined in shape (“this JSON object describes
error details in an undefined way”) and recommends leaving empty in
practice. Serializes as {}; deserializes by accepting and discarding
whatever object is present, so it round-trips regardless of what a
real implementation happens to send. Use a custom type via
CallError/CallResultError’s D parameter for typed details.
Trait Implementations§
Source§impl Clone for EmptyPayload
impl Clone for EmptyPayload
Source§fn clone(&self) -> EmptyPayload
fn clone(&self) -> EmptyPayload
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 EmptyPayload
Source§impl Debug for EmptyPayload
impl Debug for EmptyPayload
Source§impl Default for EmptyPayload
impl Default for EmptyPayload
Source§fn default() -> EmptyPayload
fn default() -> EmptyPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmptyPayload
Available on crate feature serde only.
impl<'de> Deserialize<'de> for EmptyPayload
Available on crate feature
serde only.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
impl Eq for EmptyPayload
Source§impl PartialEq for EmptyPayload
impl PartialEq for EmptyPayload
Source§impl Serialize for EmptyPayload
Available on crate feature serde only.
impl Serialize for EmptyPayload
Available on crate feature
serde only.impl StructuralPartialEq for EmptyPayload
Auto Trait Implementations§
impl Freeze for EmptyPayload
impl RefUnwindSafe for EmptyPayload
impl Send for EmptyPayload
impl Sync for EmptyPayload
impl Unpin for EmptyPayload
impl UnsafeUnpin for EmptyPayload
impl UnwindSafe for EmptyPayload
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