pub struct PropertyTypeDef {
pub name: DbString,
pub value_type: PropertyValueType,
pub list_element_type: Option<PropertyElementType>,
pub required: bool,
pub default: Option<PropertyDefaultValue>,
pub immutable: bool,
pub unique: bool,
pub decimal_type: Option<DecimalType>,
pub character_string_type: Option<CharacterStringType>,
pub byte_string_type: Option<ByteStringType>,
pub record_field_types: Option<RecordFieldTypes>,
}Expand description
Property declaration for a closed graph type.
Fields§
§name: DbStringProperty name.
value_type: PropertyValueTypeDeclared value type.
list_element_type: Option<PropertyElementType>Declared element type when PropertyTypeDef::value_type is List.
required: booltrue means NOT NULL / required.
default: Option<PropertyDefaultValue>Default value materialized when the property is omitted on create.
immutable: boolWhether updates to this property are forbidden after creation.
unique: boolWhether non-null property values must be unique within the declaring type.
decimal_type: Option<DecimalType>Declared decimal precision/scale when PropertyTypeDef::value_type is
Decimal.
character_string_type: Option<CharacterStringType>Declared character-string length when PropertyTypeDef::value_type is
String.
byte_string_type: Option<ByteStringType>Declared byte-string length when PropertyTypeDef::value_type is Bytes.
record_field_types: Option<RecordFieldTypes>Declared field types when PropertyTypeDef::value_type is RecordTyped.
Some only for closed/typed RECORD declarations; None for open Record
and every non-record value type (symmetric to
PropertyTypeDef::list_element_type).
Trait Implementations§
Source§impl Archive for PropertyTypeDef
impl Archive for PropertyTypeDef
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
serialize. Read moreSource§type Archived = ArchivedPropertyTypeDef
type Archived = ArchivedPropertyTypeDef
Source§type Resolver = PropertyTypeDefResolver
type Resolver = PropertyTypeDefResolver
Source§impl Clone for PropertyTypeDef
impl Clone for PropertyTypeDef
Source§fn clone(&self) -> PropertyTypeDef
fn clone(&self) -> PropertyTypeDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PropertyTypeDef
impl Debug for PropertyTypeDef
Source§impl<'de> Deserialize<'de> for PropertyTypeDef
impl<'de> Deserialize<'de> for PropertyTypeDef
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<__D: Fallible + ?Sized> Deserialize<PropertyTypeDef, __D> for Archived<PropertyTypeDef>where
DbString: Archive,
<DbString as Archive>::Archived: Deserialize<DbString, __D>,
PropertyValueType: Archive,
<PropertyValueType as Archive>::Archived: Deserialize<PropertyValueType, __D>,
Option<PropertyElementType>: Archive,
<Option<PropertyElementType> as Archive>::Archived: Deserialize<Option<PropertyElementType>, __D>,
bool: Archive,
<bool as Archive>::Archived: Deserialize<bool, __D>,
Option<PropertyDefaultValue>: Archive,
<Option<PropertyDefaultValue> as Archive>::Archived: Deserialize<Option<PropertyDefaultValue>, __D>,
Option<DecimalType>: Archive,
<Option<DecimalType> as Archive>::Archived: Deserialize<Option<DecimalType>, __D>,
Option<CharacterStringType>: Archive,
<Option<CharacterStringType> as Archive>::Archived: Deserialize<Option<CharacterStringType>, __D>,
Option<ByteStringType>: Archive,
<Option<ByteStringType> as Archive>::Archived: Deserialize<Option<ByteStringType>, __D>,
Option<RecordFieldTypes>: Archive,
<Option<RecordFieldTypes> as Archive>::Archived: Deserialize<Option<RecordFieldTypes>, __D>,
impl<__D: Fallible + ?Sized> Deserialize<PropertyTypeDef, __D> for Archived<PropertyTypeDef>where
DbString: Archive,
<DbString as Archive>::Archived: Deserialize<DbString, __D>,
PropertyValueType: Archive,
<PropertyValueType as Archive>::Archived: Deserialize<PropertyValueType, __D>,
Option<PropertyElementType>: Archive,
<Option<PropertyElementType> as Archive>::Archived: Deserialize<Option<PropertyElementType>, __D>,
bool: Archive,
<bool as Archive>::Archived: Deserialize<bool, __D>,
Option<PropertyDefaultValue>: Archive,
<Option<PropertyDefaultValue> as Archive>::Archived: Deserialize<Option<PropertyDefaultValue>, __D>,
Option<DecimalType>: Archive,
<Option<DecimalType> as Archive>::Archived: Deserialize<Option<DecimalType>, __D>,
Option<CharacterStringType>: Archive,
<Option<CharacterStringType> as Archive>::Archived: Deserialize<Option<CharacterStringType>, __D>,
Option<ByteStringType>: Archive,
<Option<ByteStringType> as Archive>::Archived: Deserialize<Option<ByteStringType>, __D>,
Option<RecordFieldTypes>: Archive,
<Option<RecordFieldTypes> as Archive>::Archived: Deserialize<Option<RecordFieldTypes>, __D>,
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<PropertyTypeDef, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<PropertyTypeDef, <__D as Fallible>::Error>
Source§impl PartialEq for PropertyTypeDef
impl PartialEq for PropertyTypeDef
Source§fn eq(&self, other: &PropertyTypeDef) -> bool
fn eq(&self, other: &PropertyTypeDef) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PropertyTypeDef
impl Serialize for PropertyTypeDef
Source§impl<__S: Fallible + ?Sized> Serialize<__S> for PropertyTypeDefwhere
DbString: Serialize<__S>,
PropertyValueType: Serialize<__S>,
Option<PropertyElementType>: Serialize<__S>,
bool: Serialize<__S>,
Option<PropertyDefaultValue>: Serialize<__S>,
Option<DecimalType>: Serialize<__S>,
Option<CharacterStringType>: Serialize<__S>,
Option<ByteStringType>: Serialize<__S>,
Option<RecordFieldTypes>: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for PropertyTypeDefwhere
DbString: Serialize<__S>,
PropertyValueType: Serialize<__S>,
Option<PropertyElementType>: Serialize<__S>,
bool: Serialize<__S>,
Option<PropertyDefaultValue>: Serialize<__S>,
Option<DecimalType>: Serialize<__S>,
Option<CharacterStringType>: Serialize<__S>,
Option<ByteStringType>: Serialize<__S>,
Option<RecordFieldTypes>: Serialize<__S>,
impl StructuralPartialEq for PropertyTypeDef
Auto Trait Implementations§
impl Freeze for PropertyTypeDef
impl RefUnwindSafe for PropertyTypeDef
impl Send for PropertyTypeDef
impl Sync for PropertyTypeDef
impl Unpin for PropertyTypeDef
impl UnsafeUnpin for PropertyTypeDef
impl UnwindSafe for PropertyTypeDef
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be
unsized. Read moreSource§fn archived_metadata(
&self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.