pub struct CommandOverlay<'a> {
pub command: CommandSelector<'a>,
pub effect: Effect,
}Expand description
One sparse metadata override applied by SpecView.
This deliberately contains only properties with real fleet users. Adding a property is preferable to exposing a mutable command builder: the base derive tables remain immutable, shareable and free to parse.
Fields§
§command: CommandSelector<'a>§effect: EffectImplementations§
Source§impl<'a> CommandOverlay<'a>
impl<'a> CommandOverlay<'a>
pub const fn effect(path: &'a str, effect: Effect) -> CommandOverlay<'a>
pub const fn effect_for(key: u64, effect: Effect) -> CommandOverlay<'a>
Trait Implementations§
Source§impl<'a> Clone for CommandOverlay<'a>
impl<'a> Clone for CommandOverlay<'a>
Source§fn clone(&self) -> CommandOverlay<'a>
fn clone(&self) -> CommandOverlay<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for CommandOverlay<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandOverlay<'a>
impl<'a> RefUnwindSafe for CommandOverlay<'a>
impl<'a> Send for CommandOverlay<'a>
impl<'a> Sync for CommandOverlay<'a>
impl<'a> Unpin for CommandOverlay<'a>
impl<'a> UnsafeUnpin for CommandOverlay<'a>
impl<'a> UnwindSafe for CommandOverlay<'a>
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