Clarify how InvalidInput differs from InvalidEvent.
This commit is contained in:
parent
0f55729478
commit
8c8f1790f1
@ -206,6 +206,9 @@ impl From<serde_json::Error> for InvalidEvent {
|
||||
}
|
||||
|
||||
/// An error returned when attempting to create an event with data that would make it invalid.
|
||||
///
|
||||
/// This type is similar to `InvalidEvent`, but used during the construction of a new event, as
|
||||
/// opposed to deserialization of an existing event from JSON.
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub struct InvalidInput(String);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user