pub struct ConstantSpec {
pub name: String,
pub ty: TypeSpec,
pub value: String,
}Expand description
A constant of a message.
Fields§
§name: StringThe name.
ty: TypeSpecThe type: a primitive or a string.
value: StringThe value, as written.
Trait Implementations§
Source§impl Clone for ConstantSpec
impl Clone for ConstantSpec
Source§impl Debug for ConstantSpec
impl Debug for ConstantSpec
Source§impl PartialEq for ConstantSpec
impl PartialEq for ConstantSpec
impl StructuralPartialEq for ConstantSpec
Auto Trait Implementations§
impl Forget for ConstantSpec
impl Freeze for ConstantSpec
impl Move for ConstantSpec
impl RefUnwindSafe for ConstantSpec
impl Send for ConstantSpecwhere
RawVecInner: Send,
impl Sync for ConstantSpecwhere
RawVecInner: Sync,
impl Unpin for ConstantSpec
impl UnsafeUnpin for ConstantSpec
impl UnwindSafe for ConstantSpecwhere
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