Struct nakadi_types::event_type::EventTypeSchema [−][src]
pub struct EventTypeSchema { pub version: String, pub created_at: DateTime<Utc>, pub schema_type: SchemaType, pub schema: SchemaSyntax, }
Expand description
The most recent schema for this EventType. Submitted events will be validated against it.
Fields
version: String
This field is automatically generated by Nakadi. Values are based on semantic versioning. Changes to title or description are considered PATCH level changes. Adding new optional fields is considered a MINOR level change. All other changes are considered MAJOR level.
created_at: DateTime<Utc>
Creation timestamp of the schema. This is generated by Nakadi. It should not be specified when updating a schema and sending it may result in a client error.
schema_type: SchemaType
The type of schema definition. Currently only json_schema (JSON Schema v04) is supported, but in the future there could be others.
schema: SchemaSyntax
The schema as string in the syntax defined in the field type. Failure to respect the syntax will fail any operation on an EventType.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EventTypeSchema
impl Send for EventTypeSchema
impl Sync for EventTypeSchema
impl Unpin for EventTypeSchema
impl UnwindSafe for EventTypeSchema
Blanket Implementations
Mutably borrows from an owned value. Read more