pub struct ColorLink {
pub reference: ObjectIdentifier,
pub color_override: Option<ColorOverride>,
}Expand description
A lighting output’s link to the colour objects that set its colour (Addendum 135-2020ca part 4, #1527).
Each reference must name a colour object, Color or Color Temperature, or have instance 4194303, which names none whatever its type.
Fields§
§reference: ObjectIdentifierColor_Reference: the object that sets the colour.
color_override: Option<ColorOverride>Color_Override and Override_Color_Reference, present when the output supports colour override.
Implementations§
Source§impl ColorLink
impl ColorLink
Sourcepub const fn new(reference: ObjectIdentifier) -> Self
pub const fn new(reference: ObjectIdentifier) -> Self
A link to reference with no colour override.
Sourcepub fn active_reference(&self) -> Option<ObjectIdentifier>
pub fn active_reference(&self) -> Option<ObjectIdentifier>
The reference that sets the colour now: Override_Color_Reference
while overridden, otherwise Color_Reference. None when it names no
object (instance 4194303).
Trait Implementations§
impl Copy for ColorLink
impl Eq for ColorLink
impl StructuralPartialEq for ColorLink
Auto Trait Implementations§
impl Freeze for ColorLink
impl RefUnwindSafe for ColorLink
impl Send for ColorLink
impl Sync for ColorLink
impl Unpin for ColorLink
impl UnsafeUnpin for ColorLink
impl UnwindSafe for ColorLink
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