pub struct OCPP2_0_1Error {
pub code: RpcErrorCode,
pub description: String,
pub details: Value,
}Expand description
An OCPP 2.0.1 CALLERROR: the RPC framework error code from
ocpp_types::v201::RpcErrorCode, paired with the free-text description and details a
CALLERROR frame carries alongside it (the spec leaves errorDetails’s shape undefined, so
this crate keeps it as a raw Value rather than a typed field).
Fields§
§code: RpcErrorCode§description: String§details: ValueTrait Implementations§
Source§impl Clone for OCPP2_0_1Error
impl Clone for OCPP2_0_1Error
Source§fn clone(&self) -> OCPP2_0_1Error
fn clone(&self) -> OCPP2_0_1Error
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 OCPP2_0_1Error
impl Debug for OCPP2_0_1Error
Source§impl Display for OCPP2_0_1Error
impl Display for OCPP2_0_1Error
Source§impl Error for OCPP2_0_1Error
impl Error for OCPP2_0_1Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ValidationError> for OCPP2_0_1Error
Available on crate feature validate only.Answer a schema violation with the CALLERROR 2.0.1 names for it. Unlike 1.6J, 2.x spells
OccurrenceConstraintViolation with both rs - see the 1.6 impl for why that matters.
impl From<ValidationError> for OCPP2_0_1Error
Available on crate feature
validate only.Answer a schema violation with the CALLERROR 2.0.1 names for it. Unlike 1.6J, 2.x spells
OccurrenceConstraintViolation with both rs - see the 1.6 impl for why that matters.
Source§fn from(error: ValidationError) -> Self
fn from(error: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OCPP2_0_1Error
impl RefUnwindSafe for OCPP2_0_1Error
impl Send for OCPP2_0_1Error
impl Sync for OCPP2_0_1Error
impl Unpin for OCPP2_0_1Error
impl UnsafeUnpin for OCPP2_0_1Error
impl UnwindSafe for OCPP2_0_1Error
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