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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.