pub struct EntitySchema<T> {
pub entity_type: EntityType,
pub inherit: Option<EntityType>,
pub fields: HashMap<FieldType, FieldSchema>,
/* private fields */
}Fields§
§entity_type: EntityType§inherit: Option<EntityType>§fields: HashMap<FieldType, FieldSchema>Implementations§
Source§impl EntitySchema<Single>
impl EntitySchema<Single>
Source§impl<T> EntitySchema<T>
impl<T> EntitySchema<T>
pub fn diff(&self, other: &EntitySchema<T>) -> Vec<FieldSchema>
Trait Implementations§
Source§impl<T: Clone> Clone for EntitySchema<T>
impl<T: Clone> Clone for EntitySchema<T>
Source§fn clone(&self) -> EntitySchema<T>
fn clone(&self) -> EntitySchema<T>
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<T: Debug> Debug for EntitySchema<T>
impl<T: Debug> Debug for EntitySchema<T>
Source§impl<'de, T> Deserialize<'de> for EntitySchema<T>
impl<'de, T> Deserialize<'de> for EntitySchema<T>
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 From<EntitySchema<Single>> for EntitySchema<Complete>
impl From<EntitySchema<Single>> for EntitySchema<Complete>
Source§fn from(schema: EntitySchema<Single>) -> Self
fn from(schema: EntitySchema<Single>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for EntitySchema<T>
impl<T: PartialEq> PartialEq for EntitySchema<T>
Source§impl<T> Serialize for EntitySchema<T>
impl<T> Serialize for EntitySchema<T>
impl<T> StructuralPartialEq for EntitySchema<T>
Auto Trait Implementations§
impl<T> Freeze for EntitySchema<T>
impl<T> RefUnwindSafe for EntitySchema<T>where
T: RefUnwindSafe,
impl<T> Send for EntitySchema<T>where
T: Send,
impl<T> Sync for EntitySchema<T>where
T: Sync,
impl<T> Unpin for EntitySchema<T>where
T: Unpin,
impl<T> UnwindSafe for EntitySchema<T>where
T: UnwindSafe,
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