Struct yy_typings::AudioGroupId
source · [−]pub struct AudioGroupId {
pub name: String,
pub path: AudioGroupPath,
}
Expand description
A unqiue Id for audiogroups. Although it appears as if it could support
hierarchies and nesting, audio ids never actually show that in
practice, so this form is likely an artifact of the Yyg internal project
structures.. The first member of this hierarchy is always
audiogroups
.
Fields
name: String
The human readable name of the parent. For a audiogroup Default
,
this name would read Default
.
path: AudioGroupPath
The path to the audio group, where:
assert_eq!(self.path.0, format!("audiogroups/{}", self.name))
Trait Implementations
sourceimpl Clone for AudioGroupId
impl Clone for AudioGroupId
sourcefn clone(&self) -> AudioGroupId
fn clone(&self) -> AudioGroupId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AudioGroupId
impl Debug for AudioGroupId
sourceimpl Default for AudioGroupId
impl Default for AudioGroupId
sourcefn default() -> AudioGroupId
fn default() -> AudioGroupId
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AudioGroupId
impl<'de> Deserialize<'de> for AudioGroupId
sourcefn 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
sourceimpl Hash for AudioGroupId
impl Hash for AudioGroupId
sourceimpl PartialEq<AudioGroupId> for AudioGroupId
impl PartialEq<AudioGroupId> for AudioGroupId
sourcefn eq(&self, other: &AudioGroupId) -> bool
fn eq(&self, other: &AudioGroupId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AudioGroupId) -> bool
fn ne(&self, other: &AudioGroupId) -> bool
This method tests for !=
.
sourceimpl Serialize for AudioGroupId
impl Serialize for AudioGroupId
impl Eq for AudioGroupId
impl StructuralEq for AudioGroupId
impl StructuralPartialEq for AudioGroupId
Auto Trait Implementations
impl RefUnwindSafe for AudioGroupId
impl Send for AudioGroupId
impl Sync for AudioGroupId
impl Unpin for AudioGroupId
impl UnwindSafe for AudioGroupId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more