Struct CardProfileInfo

Source
pub struct CardProfileInfo<'a> {
    pub name: Option<Cow<'a, str>>,
    pub description: Option<Cow<'a, str>>,
    pub n_sinks: u32,
    pub n_sources: u32,
    pub priority: u32,
    pub available: bool,
}
Expand description

Stores information about a specific profile of a card.

Please note that this structure can be extended as part of evolutionary API updates at any time in any new release.

Fields§

§name: Option<Cow<'a, str>>

Name of this profile.

§description: Option<Cow<'a, str>>

Description of this profile.

§n_sinks: u32

Number of sinks this profile would create.

§n_sources: u32

Number of sources this profile would create.

§priority: u32

The higher this value is, the more useful this profile is as a default.

§available: bool

Is this profile available? If this is false, meaning “unavailable”, then it makes no sense to try to activate this profile. If this is true, it’s still not a guarantee that activating the profile will result in anything useful, it just means that the server isn’t aware of any reason why the profile would definitely be useless.

Implementations§

Source§

impl CardProfileInfo<'_>

Source

pub fn to_owned(&self) -> CardProfileInfo<'static>

Creates a copy with owned data.

Trait Implementations§

Source§

impl<'a> Debug for CardProfileInfo<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for CardProfileInfo<'a>

§

impl<'a> RefUnwindSafe for CardProfileInfo<'a>

§

impl<'a> Send for CardProfileInfo<'a>

§

impl<'a> Sync for CardProfileInfo<'a>

§

impl<'a> Unpin for CardProfileInfo<'a>

§

impl<'a> UnwindSafe for CardProfileInfo<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.