pub struct CallResult<T> {
pub message_id: MessageId,
pub payload: T,
}Expand description
An OCPP-J CALLRESULT: [3, "<MessageId>", {Payload}]. Unlike
Call, there’s no action name on the wire – the recipient already
knows which action a result is for by correlating message_id against
the Call it sent, which is exactly what choosing T here represents.
Fields§
§message_id: MessageId§payload: TTrait Implementations§
Source§impl<T: Clone> Clone for CallResult<T>
impl<T: Clone> Clone for CallResult<T>
Source§fn clone(&self) -> CallResult<T>
fn clone(&self) -> CallResult<T>
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<T: Debug> Debug for CallResult<T>
impl<T: Debug> Debug for CallResult<T>
Source§impl<'de, T: Deserialize<'de>> Deserialize<'de> for CallResult<T>
Available on crate feature serde only.
impl<'de, T: Deserialize<'de>> Deserialize<'de> for CallResult<T>
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<T: Eq> Eq for CallResult<T>
Source§impl<T: PartialEq> PartialEq for CallResult<T>
impl<T: PartialEq> PartialEq for CallResult<T>
Source§impl<T: Serialize> Serialize for CallResult<T>
Available on crate feature serde only.
impl<T: Serialize> Serialize for CallResult<T>
Available on crate feature
serde only.impl<T: PartialEq> StructuralPartialEq for CallResult<T>
Auto Trait Implementations§
impl<T> Freeze for CallResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for CallResult<T>where
T: RefUnwindSafe,
impl<T> Send for CallResult<T>where
T: Send,
impl<T> Sync for CallResult<T>where
T: Sync,
impl<T> Unpin for CallResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for CallResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CallResult<T>where
T: UnwindSafe,
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