pub struct MapContentSchema {
    pub type: MapContentType,
    pub code: String,
}Fields§
§type: MapContentTypeType of the content.
code: StringCode of the content.
Implementations§
Source§impl MapContentSchema
 
impl MapContentSchema
pub fn new(type: MapContentType, code: String) -> MapContentSchema
Trait Implementations§
Source§impl Clone for MapContentSchema
 
impl Clone for MapContentSchema
Source§fn clone(&self) -> MapContentSchema
 
fn clone(&self) -> MapContentSchema
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 MapContentSchema
 
impl Debug for MapContentSchema
Source§impl Default for MapContentSchema
 
impl Default for MapContentSchema
Source§fn default() -> MapContentSchema
 
fn default() -> MapContentSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MapContentSchema
 
impl<'de> Deserialize<'de> for MapContentSchema
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 MapContentSchema
 
impl PartialEq for MapContentSchema
Source§impl Serialize for MapContentSchema
 
impl Serialize for MapContentSchema
impl StructuralPartialEq for MapContentSchema
Auto Trait Implementations§
impl Freeze for MapContentSchema
impl RefUnwindSafe for MapContentSchema
impl Send for MapContentSchema
impl Sync for MapContentSchema
impl Unpin for MapContentSchema
impl UnwindSafe for MapContentSchema
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