Enum oo_bindgen::model::UniversalStructField
source · #[non_exhaustive]
pub enum UniversalStructField {
Basic(BasicType),
Struct(UniversalStructHandle),
}
Expand description
Types that can be used in a universal struct, some of which might have a default value
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Basic(BasicType)
Struct(UniversalStructHandle)
Trait Implementations§
source§impl Clone for UniversalStructField
impl Clone for UniversalStructField
source§fn clone(&self) -> UniversalStructField
fn clone(&self) -> UniversalStructField
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 UniversalStructField
impl Debug for UniversalStructField
source§impl From<BasicType> for UniversalStructField
impl From<BasicType> for UniversalStructField
source§impl From<DurationType> for UniversalStructField
impl From<DurationType> for UniversalStructField
source§fn from(x: DurationType) -> Self
fn from(x: DurationType) -> Self
Converts to this type from the input type.
source§impl From<Handle<Enum<Unvalidated>>> for UniversalStructField
impl From<Handle<Enum<Unvalidated>>> for UniversalStructField
source§impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for UniversalStructField
impl From<Handle<Struct<UniversalStructField, Unvalidated>>> for UniversalStructField
source§fn from(x: UniversalStructHandle) -> Self
fn from(x: UniversalStructHandle) -> Self
Converts to this type from the input type.
source§impl From<Primitive> for UniversalStructField
impl From<Primitive> for UniversalStructField
source§impl InitializerValidator for UniversalStructField
impl InitializerValidator for UniversalStructField
source§fn validate_default_value(
&self,
value: &InitializerDefault
) -> BindResult<ValidatedDefaultValue>
fn validate_default_value(
&self,
value: &InitializerDefault
) -> BindResult<ValidatedDefaultValue>
Check that the value is valid for the type
fn bad_initializer_value(
field_type: String,
value: &InitializerDefault
) -> BindResult<ValidatedDefaultValue>
source§impl StructFieldType for UniversalStructField
impl StructFieldType for UniversalStructField
source§fn create_struct_type(
v: Handle<Struct<UniversalStructField, Unvalidated>>
) -> StructType<Unvalidated>
fn create_struct_type(
v: Handle<Struct<UniversalStructField, Unvalidated>>
) -> StructType<Unvalidated>
convert a structure to a StructType