pub struct SchemaDescriptor {
pub content_type: String,
pub event_version: String,
}Fields§
§content_type: String§event_version: StringImplementations§
Source§impl SchemaDescriptor
impl SchemaDescriptor
pub fn validate(&self) -> Result<(), EventBusError>
Trait Implementations§
Source§impl Clone for SchemaDescriptor
impl Clone for SchemaDescriptor
Source§fn clone(&self) -> SchemaDescriptor
fn clone(&self) -> SchemaDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaDescriptor
impl Debug for SchemaDescriptor
Source§impl Default for SchemaDescriptor
impl Default for SchemaDescriptor
Source§fn default() -> SchemaDescriptor
fn default() -> SchemaDescriptor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaDescriptor
impl RefUnwindSafe for SchemaDescriptor
impl Send for SchemaDescriptor
impl Sync for SchemaDescriptor
impl Unpin for SchemaDescriptor
impl UnsafeUnpin for SchemaDescriptor
impl UnwindSafe for SchemaDescriptor
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