pub struct TargetCandidate {
pub target: String,
pub label: String,
pub glyph: String,
}Expand description
One entry in Mapping::target_candidates. During selection mode the
device displays glyph and, on confirm, the mapping’s service_target
is replaced with target.
Fields§
§target: StringThe service_target value to switch to (e.g. a Roon zone ID).
label: StringHuman-readable label for the UI only — the edge does not need it.
glyph: StringName of a glyph in the edge’s glyph registry to display while this candidate is highlighted in selection mode.
Trait Implementations§
Source§impl Clone for TargetCandidate
impl Clone for TargetCandidate
Source§fn clone(&self) -> TargetCandidate
fn clone(&self) -> TargetCandidate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetCandidate
impl Debug for TargetCandidate
Source§impl<'de> Deserialize<'de> for TargetCandidate
impl<'de> Deserialize<'de> for TargetCandidate
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
Auto Trait Implementations§
impl Freeze for TargetCandidate
impl RefUnwindSafe for TargetCandidate
impl Send for TargetCandidate
impl Sync for TargetCandidate
impl Unpin for TargetCandidate
impl UnsafeUnpin for TargetCandidate
impl UnwindSafe for TargetCandidate
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