pub struct Constant {
pub name: String,
pub ty: TypeSpec,
pub value: Value,
}Expand description
A constant of a message.
Fields§
§name: StringThe name.
ty: TypeSpecThe type.
value: ValueThe value.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Constant
impl Freeze for Constantwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<(String, Value)>: Freeze,
impl Move for Constant
impl RefUnwindSafe for Constant
impl Send for Constantwhere
RawVecInner: Send,
impl Sync for Constantwhere
RawVecInner: Sync,
impl Unpin for Constant
impl UnsafeUnpin for Constantwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<(String, Value)>: UnsafeUnpin,
impl UnwindSafe for Constantwhere
RawVecInner: UnwindSafe,
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