pub struct EventContentSchema {
pub type: MapContentType,
pub code: String,
}Fields§
§type: MapContentTypeType of the event.
code: StringCode content.
Implementations§
Source§impl EventContentSchema
impl EventContentSchema
pub fn new(type: MapContentType, code: String) -> EventContentSchema
Trait Implementations§
Source§impl Clone for EventContentSchema
impl Clone for EventContentSchema
Source§fn clone(&self) -> EventContentSchema
fn clone(&self) -> EventContentSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 EventContentSchema
impl Debug for EventContentSchema
Source§impl Default for EventContentSchema
impl Default for EventContentSchema
Source§fn default() -> EventContentSchema
fn default() -> EventContentSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventContentSchema
impl<'de> Deserialize<'de> for EventContentSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EventContentSchema
impl PartialEq for EventContentSchema
Source§impl Serialize for EventContentSchema
impl Serialize for EventContentSchema
impl StructuralPartialEq for EventContentSchema
Auto Trait Implementations§
impl Freeze for EventContentSchema
impl RefUnwindSafe for EventContentSchema
impl Send for EventContentSchema
impl Sync for EventContentSchema
impl Unpin for EventContentSchema
impl UnsafeUnpin for EventContentSchema
impl UnwindSafe for EventContentSchema
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