pub struct EnumTypeValueVariant {
pub name: String,
pub value: Option<TypeValue>,
pub doc_comment: Option<String>,
pub attributes: Vec<Attribute>,
}
Fields§
§name: String
§value: Option<TypeValue>
If this variant has a value, this will be the type of that value otherwise its just a unit variant
doc_comment: Option<String>
§attributes: Vec<Attribute>
Trait Implementations§
Source§impl Clone for EnumTypeValueVariant
impl Clone for EnumTypeValueVariant
Source§fn clone(&self) -> EnumTypeValueVariant
fn clone(&self) -> EnumTypeValueVariant
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EnumTypeValueVariant
impl Debug for EnumTypeValueVariant
Auto Trait Implementations§
impl Freeze for EnumTypeValueVariant
impl RefUnwindSafe for EnumTypeValueVariant
impl Send for EnumTypeValueVariant
impl Sync for EnumTypeValueVariant
impl Unpin for EnumTypeValueVariant
impl UnwindSafe for EnumTypeValueVariant
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.