Struct edge_schema::schema::EntityKind
source · pub struct EntityKind { /* private fields */ }
Expand description
Represents an entity kind as a string.
Contains 3 components: namespace, name and version. Example: my.namespace/MyEntityKind.v1
Implementations§
Trait Implementations§
source§impl Clone for EntityKind
impl Clone for EntityKind
source§fn clone(&self) -> EntityKind
fn clone(&self) -> EntityKind
Returns a copy 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 EntityKind
impl Debug for EntityKind
source§impl<'de> Deserialize<'de> for EntityKind
impl<'de> Deserialize<'de> for EntityKind
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for EntityKind
impl FromStr for EntityKind
source§impl JsonSchema for EntityKind
impl JsonSchema for EntityKind
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for EntityKind
impl PartialEq for EntityKind
source§fn eq(&self, other: &EntityKind) -> bool
fn eq(&self, other: &EntityKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EntityKind
impl Serialize for EntityKind
impl Eq for EntityKind
impl StructuralPartialEq for EntityKind
Auto Trait Implementations§
impl Freeze for EntityKind
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnwindSafe for EntityKind
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.