pub struct EnumDef {Show 15 fields
pub fqcn: Arc<str>,
pub short_name: Arc<str>,
pub scalar_type: Option<Type>,
pub interfaces: Vec<Arc<str>>,
pub implements_type_args: Vec<(Arc<str>, Vec<Type>)>,
pub cases: MemberMap<EnumCaseDef>,
pub own_methods: MemberMap<Arc<MethodDef>>,
pub own_constants: MemberMap<ConstantDef>,
pub traits: Vec<Arc<str>>,
pub trait_use_locations: Vec<(Arc<str>, Location)>,
pub trait_use_type_args: Vec<(Arc<str>, Vec<Type>)>,
pub location: Option<Location>,
pub deprecated: Option<Arc<str>>,
pub type_aliases: FxHashMap<Arc<str>, Type>,
pub own_properties: MemberMap<PropertyDef>,
}Fields§
§fqcn: Arc<str>§short_name: Arc<str>§scalar_type: Option<Type>§interfaces: Vec<Arc<str>>§implements_type_args: Vec<(Arc<str>, Vec<Type>)>Type arguments from @implements Interface<T1, T2>.
cases: MemberMap<EnumCaseDef>§own_methods: MemberMap<Arc<MethodDef>>§own_constants: MemberMap<ConstantDef>§traits: Vec<Arc<str>>use SomeTrait; declarations. PHP enums may use traits (for methods),
just never carry instance properties from them.
trait_use_locations: Vec<(Arc<str>, Location)>§trait_use_type_args: Vec<(Arc<str>, Vec<Type>)>Type arguments from @use SomeTrait<T1, T2>.
location: Option<Location>§deprecated: Option<Arc<str>>@deprecated docblock annotation (or #[Deprecated] attribute), if present.
type_aliases: FxHashMap<Arc<str>, Type>Type aliases declared on this enum via @psalm-type / @phpstan-type.
own_properties: MemberMap<PropertyDef>Properties declared via @property* docblock annotations on the enum.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnumDef
impl<'de> Deserialize<'de> for EnumDef
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
impl StructuralPartialEq for EnumDef
Auto Trait Implementations§
impl Freeze for EnumDef
impl RefUnwindSafe for EnumDef
impl Send for EnumDef
impl Sync for EnumDef
impl Unpin for EnumDef
impl UnsafeUnpin for EnumDef
impl UnwindSafe for EnumDef
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