pub struct EntityAttributesInternal<N> {
pub attrs: RecordType<EntityAttributeType<N>>,
/* private fields */
}
Expand description
Helper struct containing the contents of
EntityAttributes::EntityAttributes
.
This doesn’t cover all possible legal JSON forms for entity attributes
(use EntityAttributes
for that) – in particular this struct doesn’t
accept a single common-type reference; it requires a record declaration.
But, this struct does cover all legal JSON forms for entity attributes that
aren’t accepted as legal JSON forms for record attributes.
Fields§
§attrs: RecordType<EntityAttributeType<N>>
Entity attribute types, as a RecordType
. These may include EAMap
s.
Implementations§
source§impl<N> EntityAttributesInternal<N>
impl<N> EntityAttributesInternal<N>
sourcepub fn is_empty_record(&self) -> bool
pub fn is_empty_record(&self) -> bool
Is this EntityAttributesInternal
an empty record?
source§impl EntityAttributesInternal<RawName>
impl EntityAttributesInternal<RawName>
sourcepub fn conditionally_qualify_type_references(
self,
ns: Option<&InternalName>,
) -> EntityAttributesInternal<ConditionalName>
pub fn conditionally_qualify_type_references( self, ns: Option<&InternalName>, ) -> EntityAttributesInternal<ConditionalName>
(Conditionally) prefix unqualified entity and common type references with the namespace they are in
source§impl EntityAttributesInternal<ConditionalName>
impl EntityAttributesInternal<ConditionalName>
sourcepub fn fully_qualify_type_references(
self,
all_defs: &AllDefs,
) -> Result<EntityAttributesInternal<InternalName>, TypeNotDefinedError>
pub fn fully_qualify_type_references( self, all_defs: &AllDefs, ) -> Result<EntityAttributesInternal<InternalName>, TypeNotDefinedError>
Convert this EntityAttributes<ConditionalName>
into a
EntityAttributes<InternalName>
by fully-qualifying all typenames
that appear anywhere in any definitions.
all_defs
needs to contain the full set of all fully-qualified typenames
and actions that are defined in the schema (in all schema fragments).
Trait Implementations§
source§impl<N: Clone> Clone for EntityAttributesInternal<N>
impl<N: Clone> Clone for EntityAttributesInternal<N>
source§fn clone(&self) -> EntityAttributesInternal<N>
fn clone(&self) -> EntityAttributesInternal<N>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<N: Debug> Debug for EntityAttributesInternal<N>
impl<N: Debug> Debug for EntityAttributesInternal<N>
source§impl<'de, N> Deserialize<'de> for EntityAttributesInternal<N>
impl<'de, N> Deserialize<'de> for EntityAttributesInternal<N>
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>,
source§impl<N: Display> Display for EntityAttributesInternal<N>
impl<N: Display> Display for EntityAttributesInternal<N>
source§impl<N: PartialEq> PartialEq for EntityAttributesInternal<N>
impl<N: PartialEq> PartialEq for EntityAttributesInternal<N>
source§impl<N> Serialize for EntityAttributesInternal<N>where
N: Serialize,
impl<N> Serialize for EntityAttributesInternal<N>where
N: Serialize,
impl<N> StructuralPartialEq for EntityAttributesInternal<N>
Auto Trait Implementations§
impl<N> Freeze for EntityAttributesInternal<N>
impl<N> RefUnwindSafe for EntityAttributesInternal<N>where
N: RefUnwindSafe,
impl<N> Send for EntityAttributesInternal<N>where
N: Send,
impl<N> Sync for EntityAttributesInternal<N>where
N: Sync,
impl<N> Unpin for EntityAttributesInternal<N>
impl<N> UnwindSafe for EntityAttributesInternal<N>where
N: RefUnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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 more