pub struct UnstablePublicApiValidationIssue {
pub code: String,
pub message: String,
pub path: Vec<Value>,
}Expand description
UnstablePublicApiValidationIssue : One validation issue returned for malformed request bodies or query parameters. This mirrors the most important parts of a Zod issue: a machine-readable code, a human-readable message, and a structured path.
Fields§
§code: StringMachine-readable validation issue code emitted by the server validator.
message: StringHuman-readable explanation of the validation failure.
path: Vec<Value>Path to the invalid field, for example [\"mapping\", 0, \"jsonPath\"].
Implementations§
Source§impl UnstablePublicApiValidationIssue
impl UnstablePublicApiValidationIssue
Sourcepub fn builder() -> UnstablePublicApiValidationIssueBuilder
pub fn builder() -> UnstablePublicApiValidationIssueBuilder
Create an instance of UnstablePublicApiValidationIssue using the builder syntax
Source§impl UnstablePublicApiValidationIssue
impl UnstablePublicApiValidationIssue
Sourcepub fn new(
code: String,
message: String,
path: Vec<Value>,
) -> UnstablePublicApiValidationIssue
pub fn new( code: String, message: String, path: Vec<Value>, ) -> UnstablePublicApiValidationIssue
One validation issue returned for malformed request bodies or query parameters. This mirrors the most important parts of a Zod issue: a machine-readable code, a human-readable message, and a structured path.
Trait Implementations§
Source§impl Clone for UnstablePublicApiValidationIssue
impl Clone for UnstablePublicApiValidationIssue
Source§fn clone(&self) -> UnstablePublicApiValidationIssue
fn clone(&self) -> UnstablePublicApiValidationIssue
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 Default for UnstablePublicApiValidationIssue
impl Default for UnstablePublicApiValidationIssue
Source§fn default() -> UnstablePublicApiValidationIssue
fn default() -> UnstablePublicApiValidationIssue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnstablePublicApiValidationIssue
impl<'de> Deserialize<'de> for UnstablePublicApiValidationIssue
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 StructuralPartialEq for UnstablePublicApiValidationIssue
Auto Trait Implementations§
impl Freeze for UnstablePublicApiValidationIssue
impl RefUnwindSafe for UnstablePublicApiValidationIssue
impl Send for UnstablePublicApiValidationIssue
impl Sync for UnstablePublicApiValidationIssue
impl Unpin for UnstablePublicApiValidationIssue
impl UnsafeUnpin for UnstablePublicApiValidationIssue
impl UnwindSafe for UnstablePublicApiValidationIssue
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