#[non_exhaustive]pub struct InjectError {
pub code: InjectErrorCode,
pub message: String,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: InjectErrorCode§message: String§rest: RestImplementations§
Source§impl InjectError
impl InjectError
Sourcepub fn builder(code: InjectErrorCode, message: String) -> InjectErrorBuilder
pub fn builder(code: InjectErrorCode, message: String) -> InjectErrorBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for InjectError
impl Clone for InjectError
Source§impl Debug for InjectError
impl Debug for InjectError
Source§impl DeclaredFields for InjectError
impl DeclaredFields for InjectError
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for InjectError
impl<'de> Deserialize<'de> for InjectError
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
impl Eq for InjectError
Source§impl PartialEq for InjectError
impl PartialEq for InjectError
Source§impl Serialize for InjectError
impl Serialize for InjectError
impl StructuralPartialEq for InjectError
Auto Trait Implementations§
impl Freeze for InjectError
impl RefUnwindSafe for InjectError
impl Send for InjectError
impl Sync for InjectError
impl Unpin for InjectError
impl UnsafeUnpin for InjectError
impl UnwindSafe for InjectError
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