pub enum EventValidationError {
EmptyDelta,
InvalidFormat(String),
MissingField(String),
TypeMismatch {
expected: String,
actual: String,
},
}Expand description
Validation errors for AG-UI protocol events.
These errors occur when event data fails validation rules.
Variants§
EmptyDelta
Delta content must not be empty.
InvalidFormat(String)
Event format is invalid.
MissingField(String)
Required field is missing.
TypeMismatch
Event type mismatch.
Trait Implementations§
Source§impl Clone for EventValidationError
impl Clone for EventValidationError
Source§fn clone(&self) -> EventValidationError
fn clone(&self) -> EventValidationError
Returns a duplicate of the value. Read more
1.0.0 · 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 EventValidationError
impl Debug for EventValidationError
Source§impl Display for EventValidationError
impl Display for EventValidationError
Source§impl Error for EventValidationError
impl Error for EventValidationError
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 PartialEq for EventValidationError
impl PartialEq for EventValidationError
impl Eq for EventValidationError
impl StructuralPartialEq for EventValidationError
Auto Trait Implementations§
impl Freeze for EventValidationError
impl RefUnwindSafe for EventValidationError
impl Send for EventValidationError
impl Sync for EventValidationError
impl Unpin for EventValidationError
impl UnsafeUnpin for EventValidationError
impl UnwindSafe for EventValidationError
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