Clarify how InvalidInput differs from InvalidEvent.

This commit is contained in:
Jimmy Cuadra 2019-07-08 03:55:12 -07:00
parent 0f55729478
commit 8c8f1790f1

View File

@ -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);