pub struct RaiseErrorDefinition {
pub error: OneOfErrorDefinitionOrReference,
}Expand description
Represents the definition of the error to raise
Fields§
§error: OneOfErrorDefinitionOrReferenceGets/sets the error to raise
Implementations§
Source§impl RaiseErrorDefinition
impl RaiseErrorDefinition
Sourcepub fn new(error: OneOfErrorDefinitionOrReference) -> Self
pub fn new(error: OneOfErrorDefinitionOrReference) -> Self
Initializes a new RaiseErrorDefinition
Trait Implementations§
Source§impl Clone for RaiseErrorDefinition
impl Clone for RaiseErrorDefinition
Source§fn clone(&self) -> RaiseErrorDefinition
fn clone(&self) -> RaiseErrorDefinition
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 RaiseErrorDefinition
impl Debug for RaiseErrorDefinition
Source§impl Default for RaiseErrorDefinition
impl Default for RaiseErrorDefinition
Source§fn default() -> RaiseErrorDefinition
fn default() -> RaiseErrorDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RaiseErrorDefinition
impl<'de> Deserialize<'de> for RaiseErrorDefinition
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
Source§impl PartialEq for RaiseErrorDefinition
impl PartialEq for RaiseErrorDefinition
Source§fn eq(&self, other: &RaiseErrorDefinition) -> bool
fn eq(&self, other: &RaiseErrorDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RaiseErrorDefinition
impl Serialize for RaiseErrorDefinition
impl StructuralPartialEq for RaiseErrorDefinition
Auto Trait Implementations§
impl Freeze for RaiseErrorDefinition
impl RefUnwindSafe for RaiseErrorDefinition
impl Send for RaiseErrorDefinition
impl Sync for RaiseErrorDefinition
impl Unpin for RaiseErrorDefinition
impl UnsafeUnpin for RaiseErrorDefinition
impl UnwindSafe for RaiseErrorDefinition
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