pub struct DmxPortPatch {
pub direction: Option<DmxDirection>,
pub universe: Option<u16>,
}Expand description
One DmxPortConfig entry as it arrives in a patch (web: DeepPartial).
Fields§
§direction: Option<DmxDirection>Optional data direction.
universe: Option<u16>Optional DMX universe number.
Implementations§
Source§impl DmxPortPatch
impl DmxPortPatch
Sourcefn apply(self, target: &mut DmxPortConfig)
fn apply(self, target: &mut DmxPortConfig)
Move the present fields onto target; absent fields stay untouched.
Trait Implementations§
Source§impl Debug for DmxPortPatch
impl Debug for DmxPortPatch
Source§impl Default for DmxPortPatch
impl Default for DmxPortPatch
Source§fn default() -> DmxPortPatch
fn default() -> DmxPortPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DmxPortPatch
impl<'de> Deserialize<'de> for DmxPortPatch
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 DmxPortPatch
impl RefUnwindSafe for DmxPortPatch
impl Send for DmxPortPatch
impl Sync for DmxPortPatch
impl Unpin for DmxPortPatch
impl UnsafeUnpin for DmxPortPatch
impl UnwindSafe for DmxPortPatch
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more