Enum abbau_types::TypeRef
source · pub enum TypeRef {
WellKnown(WellKnownTypeRef),
Named(String),
Dynamic {
switch_on: AnyScalar,
cases: BTreeMap<AnyScalar, TypeRef>,
},
}
Expand description
Reference to a Type
Variants§
WellKnown(WellKnownTypeRef)
A well-known type
Named(String)
A named type
Dynamic
Fields
A type that depends on an expression
Trait Implementations§
source§impl<'de> Deserialize<'de> for TypeRef
impl<'de> Deserialize<'de> for TypeRef
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TypeRef> for TypeRef
impl PartialEq<TypeRef> for TypeRef
impl StructuralPartialEq for TypeRef
Auto Trait Implementations§
impl RefUnwindSafe for TypeRef
impl Send for TypeRef
impl Sync for TypeRef
impl Unpin for TypeRef
impl UnwindSafe for TypeRef
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