pub struct RelationInstanceId {
pub outbound_id: Uuid,
pub ty: RelationInstanceTypeId,
pub inbound_id: Uuid,
}
Expand description
Unique ID of the relation instance
Fields§
§outbound_id: Uuid
The id of the outbound entity.
ty: RelationInstanceTypeId
The relation instance type id containing the relation type and the instance id.
inbound_id: Uuid
The id of the inbound entity.
Implementations§
Source§impl RelationInstanceId
impl RelationInstanceId
pub fn new<RIT: Into<RelationInstanceTypeId>>( outbound_id: Uuid, ty: RIT, inbound_id: Uuid, ) -> Self
pub fn new_unique<RT: Into<RelationTypeId>>( outbound_id: Uuid, ty: RT, inbound_id: Uuid, ) -> Self
pub fn new_unique_for_instance_id<RT: Into<RelationTypeId>>( outbound_id: Uuid, ty: RT, instance_id: String, inbound_id: Uuid, ) -> Self
pub fn new_with_random_instance_id<RT: Into<RelationTypeId>>( outbound_id: Uuid, ty: RT, inbound_id: Uuid, ) -> Self
Trait Implementations§
Source§impl Clone for RelationInstanceId
impl Clone for RelationInstanceId
Source§fn clone(&self) -> RelationInstanceId
fn clone(&self) -> RelationInstanceId
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 RelationInstanceId
impl Debug for RelationInstanceId
Source§impl<'de> Deserialize<'de> for RelationInstanceId
impl<'de> Deserialize<'de> for RelationInstanceId
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 Display for RelationInstanceId
impl Display for RelationInstanceId
Source§impl From<&RelationInstanceId> for NamespacedType
impl From<&RelationInstanceId> for NamespacedType
Source§fn from(ty: &RelationInstanceId) -> Self
fn from(ty: &RelationInstanceId) -> Self
Converts to this type from the input type.
Source§impl From<&RelationInstanceId> for RelationInstanceId
impl From<&RelationInstanceId> for RelationInstanceId
Source§fn from(ty: &RelationInstanceId) -> Self
fn from(ty: &RelationInstanceId) -> Self
Converts to this type from the input type.
Source§impl From<&RelationInstanceId> for TypeDefinition
impl From<&RelationInstanceId> for TypeDefinition
Source§fn from(ty: &RelationInstanceId) -> Self
fn from(ty: &RelationInstanceId) -> Self
Converts to this type from the input type.
Source§impl Hash for RelationInstanceId
impl Hash for RelationInstanceId
Source§impl JsonSchema for RelationInstanceId
impl JsonSchema for RelationInstanceId
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read more§fn always_inline_schema() -> bool
fn always_inline_schema() -> bool
👎Deprecated: Use
inline_schema()
insteadOnly included for backward-compatibility - use
inline_schema()
instead“. Read moreSource§impl Ord for RelationInstanceId
impl Ord for RelationInstanceId
Source§impl PartialEq for RelationInstanceId
impl PartialEq for RelationInstanceId
Source§impl PartialOrd for RelationInstanceId
impl PartialOrd for RelationInstanceId
Source§impl Serialize for RelationInstanceId
impl Serialize for RelationInstanceId
Source§impl TryFrom<&String> for RelationInstanceId
impl TryFrom<&String> for RelationInstanceId
Source§impl TypeDefinitionGetter for RelationInstanceId
impl TypeDefinitionGetter for RelationInstanceId
Source§fn type_definition(&self) -> TypeDefinition
fn type_definition(&self) -> TypeDefinition
Returns the type definition of the type.
impl Eq for RelationInstanceId
impl StructuralPartialEq for RelationInstanceId
Auto Trait Implementations§
impl Freeze for RelationInstanceId
impl RefUnwindSafe for RelationInstanceId
impl Send for RelationInstanceId
impl Sync for RelationInstanceId
impl Unpin for RelationInstanceId
impl UnwindSafe for RelationInstanceId
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> JsonSchemaIdGetter for Twhere
T: TypeDefinitionGetter,
impl<T> JsonSchemaIdGetter for Twhere
T: TypeDefinitionGetter,
Source§fn json_schema_id(&self) -> JsonSchemaId
fn json_schema_id(&self) -> JsonSchemaId
Returns the JSON Schema identifier ($id).