pub enum EntityRef {
Army(ArmyId),
Domain(DomainRecordRef),
Government(GovernmentId),
Organization(OrganizationId),
Person(PersonId),
Resource(ResourceId),
Route(RouteId),
Territory(TerritoryId),
}Expand description
Serializable entity reference used by events, queries, and generic tools.
Variants§
Army(ArmyId)
Domain(DomainRecordRef)
Government(GovernmentId)
Organization(OrganizationId)
Person(PersonId)
Resource(ResourceId)
Route(RouteId)
Territory(TerritoryId)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EntityRef
impl<'de> Deserialize<'de> for EntityRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntityRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EntityRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EntityRef
Source§impl<T> From<TypedDomainRecordRef<T>> for EntityRefwhere
T: DomainEntityType,
impl<T> From<TypedDomainRecordRef<T>> for EntityRefwhere
T: DomainEntityType,
Source§fn from(reference: TypedDomainRecordRef<T>) -> EntityRef
fn from(reference: TypedDomainRecordRef<T>) -> EntityRef
Converts to this type from the input type.
Source§impl Ord for EntityRef
impl Ord for EntityRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for EntityRef
impl PartialOrd for EntityRef
Source§impl Serialize for EntityRef
impl Serialize for EntityRef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EntityRef
Auto Trait Implementations§
impl Freeze for EntityRef
impl RefUnwindSafe for EntityRef
impl Send for EntityRef
impl Sync for EntityRef
impl Unpin for EntityRef
impl UnsafeUnpin for EntityRef
impl UnwindSafe for EntityRef
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