pub enum TypeInfo {
Enum(Arc<EnumTypeInfo>),
Struct(Arc<StructTypeInfo>),
Primitive(Arc<GenericTypeInfo>),
}Expand description
Structure describing a data type on the server.
Variants§
Enum(Arc<EnumTypeInfo>)
Description of an enum data type.
Struct(Arc<StructTypeInfo>)
Description of a structure data type.
Primitive(Arc<GenericTypeInfo>)
Description of a primitive data type.
Implementations§
Source§impl TypeInfo
impl TypeInfo
Sourcepub fn from_type_definition(
value: DataTypeDefinition,
name: String,
encoding_ids: Option<EncodingIds>,
is_abstract: bool,
node_id: &NodeId,
parent_ids: &ParentIds,
) -> Result<Self, String>
pub fn from_type_definition( value: DataTypeDefinition, name: String, encoding_ids: Option<EncodingIds>, is_abstract: bool, node_id: &NodeId, parent_ids: &ParentIds, ) -> Result<Self, String>
Build a TypeInfo from the data type definition of the data type.
Trait Implementations§
Source§impl From<EnumTypeInfo> for TypeInfo
impl From<EnumTypeInfo> for TypeInfo
Source§fn from(value: EnumTypeInfo) -> Self
fn from(value: EnumTypeInfo) -> Self
Converts to this type from the input type.
Source§impl From<StructTypeInfo> for TypeInfo
impl From<StructTypeInfo> for TypeInfo
Source§fn from(value: StructTypeInfo) -> Self
fn from(value: StructTypeInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnsafeUnpin for TypeInfo
impl UnwindSafe for TypeInfo
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