pub struct ScalarMetadata { /* private fields */ }Expand description
ScalarMetadata
Capability metadata shared across schema/core layers.
Implementations§
Source§impl ScalarMetadata
impl ScalarMetadata
Sourcepub const fn family(self) -> ScalarCoercionFamily
pub const fn family(self) -> ScalarCoercionFamily
Return coercion routing family for this scalar metadata entry.
Sourcepub const fn is_numeric_value(self) -> bool
pub const fn is_numeric_value(self) -> bool
Return whether this scalar participates in numeric-valued classification.
Sourcepub const fn supports_numeric_coercion(self) -> bool
pub const fn supports_numeric_coercion(self) -> bool
Return whether this scalar supports numeric widening coercion.
Sourcepub const fn supports_arithmetic(self) -> bool
pub const fn supports_arithmetic(self) -> bool
Return whether this scalar supports arithmetic trait derivation.
Sourcepub const fn supports_equality(self) -> bool
pub const fn supports_equality(self) -> bool
Return whether this scalar supports equality predicates.
Sourcepub const fn supports_ordering(self) -> bool
pub const fn supports_ordering(self) -> bool
Return whether this scalar supports ordering predicates.
Sourcepub const fn is_keyable(self) -> bool
pub const fn is_keyable(self) -> bool
Return whether this scalar is keyable at query/schema level.
Sourcepub const fn is_primary_key_component_encodable(self) -> bool
pub const fn is_primary_key_component_encodable(self) -> bool
Return whether this scalar can be encoded as a storage key.
Trait Implementations§
Source§impl CandidType for ScalarMetadata
impl CandidType for ScalarMetadata
Source§impl Clone for ScalarMetadata
impl Clone for ScalarMetadata
Source§fn clone(&self) -> ScalarMetadata
fn clone(&self) -> ScalarMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScalarMetadata
Source§impl Debug for ScalarMetadata
impl Debug for ScalarMetadata
Source§impl<'de> Deserialize<'de> for ScalarMetadata
impl<'de> Deserialize<'de> for ScalarMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScalarMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScalarMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScalarMetadata
Source§impl PartialEq for ScalarMetadata
impl PartialEq for ScalarMetadata
Source§impl Serialize for ScalarMetadata
impl Serialize for ScalarMetadata
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 ScalarMetadata
Auto Trait Implementations§
impl Freeze for ScalarMetadata
impl RefUnwindSafe for ScalarMetadata
impl Send for ScalarMetadata
impl Sync for ScalarMetadata
impl Unpin for ScalarMetadata
impl UnsafeUnpin for ScalarMetadata
impl UnwindSafe for ScalarMetadata
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.