pub struct UpdateMediaRuntimeActionOneOf {
pub type: Type,
pub destination_id: Option<String>,
pub media_action: MediaAction,
}
Expand description
UpdateMediaRuntimeActionOneOf : An action that updates the runtime of a media node by playing, pausing, toggling play/pause, muting, unmuting, or toggling mute/unmute. The destinationId
is the node ID of the media node to update. If destinationId
is null
, the action will update the media node that contains the action. The mediaAction
is the action to perform on the media node.
Fields§
§type: Type
§destination_id: Option<String>
§media_action: MediaAction
Implementations§
Source§impl UpdateMediaRuntimeActionOneOf
impl UpdateMediaRuntimeActionOneOf
Sourcepub fn new(
type: Type,
destination_id: Option<String>,
media_action: MediaAction,
) -> UpdateMediaRuntimeActionOneOf
pub fn new( type: Type, destination_id: Option<String>, media_action: MediaAction, ) -> UpdateMediaRuntimeActionOneOf
An action that updates the runtime of a media node by playing, pausing, toggling play/pause, muting, unmuting, or toggling mute/unmute. The destinationId
is the node ID of the media node to update. If destinationId
is null
, the action will update the media node that contains the action. The mediaAction
is the action to perform on the media node.
Trait Implementations§
Source§impl Clone for UpdateMediaRuntimeActionOneOf
impl Clone for UpdateMediaRuntimeActionOneOf
Source§fn clone(&self) -> UpdateMediaRuntimeActionOneOf
fn clone(&self) -> UpdateMediaRuntimeActionOneOf
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 Default for UpdateMediaRuntimeActionOneOf
impl Default for UpdateMediaRuntimeActionOneOf
Source§fn default() -> UpdateMediaRuntimeActionOneOf
fn default() -> UpdateMediaRuntimeActionOneOf
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateMediaRuntimeActionOneOf
impl<'de> Deserialize<'de> for UpdateMediaRuntimeActionOneOf
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
Source§impl PartialEq for UpdateMediaRuntimeActionOneOf
impl PartialEq for UpdateMediaRuntimeActionOneOf
Source§fn eq(&self, other: &UpdateMediaRuntimeActionOneOf) -> bool
fn eq(&self, other: &UpdateMediaRuntimeActionOneOf) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateMediaRuntimeActionOneOf
Auto Trait Implementations§
impl Freeze for UpdateMediaRuntimeActionOneOf
impl RefUnwindSafe for UpdateMediaRuntimeActionOneOf
impl Send for UpdateMediaRuntimeActionOneOf
impl Sync for UpdateMediaRuntimeActionOneOf
impl Unpin for UpdateMediaRuntimeActionOneOf
impl UnwindSafe for UpdateMediaRuntimeActionOneOf
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