pub struct ParsedStructureField {
pub name: String,
pub type_id: NodeId,
pub value_rank: i32,
pub array_dimensions: Option<Vec<u32>>,
pub is_optional: bool,
pub scalar_type: VariantScalarTypeId,
}Expand description
Parsed type information about a struct field.
Fields§
§name: StringField name.
type_id: NodeIdField data type ID.
value_rank: i32Field value rank.
array_dimensions: Option<Vec<u32>>Field array dimensions.
is_optional: boolWhether this field is optional.
scalar_type: VariantScalarTypeIdVariant type used to store this field.
Implementations§
Source§impl ParsedStructureField
impl ParsedStructureField
Sourcepub fn from_field(
f: StructureField,
scalar_type: VariantScalarTypeId,
) -> Result<Self, String>
pub fn from_field( f: StructureField, scalar_type: VariantScalarTypeId, ) -> Result<Self, String>
Parse this from a structure field.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsedStructureField
impl RefUnwindSafe for ParsedStructureField
impl Send for ParsedStructureField
impl Sync for ParsedStructureField
impl Unpin for ParsedStructureField
impl UnsafeUnpin for ParsedStructureField
impl UnwindSafe for ParsedStructureField
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