Struct ChannelEdit

Source
pub struct ChannelEdit {
Show 13 fields pub channel_name: Option<String>, pub channel_life: Option<ChannelLife>, pub pid: Option<ChannelId>, pub channel_order: Option<ChannelId>, pub channel_topic: Option<String>, pub channel_password: Option<String>, pub channel_maxclients: Option<i32>, pub channel_maxfamilyclients: Option<i32>, pub channel_flag_default: bool, pub channel_codec: Option<i32>, pub channel_codec_quality: Option<u8>, pub channel_needed_talk_power: Option<i32>, pub channel_icon_id: Option<IconHash>,
}
Expand description

This struct defines the values of a channel that are changeable The difference to ChannelFull is that this does not contain values that are not changeable like

Fields§

§channel_name: Option<String>

The channel name

Note Has to be unique or else it might fail!

§channel_life: Option<ChannelLife>§pid: Option<ChannelId>

The parent channel id. If set, the channel becomes a Sub-Channel

§channel_order: Option<ChannelId>

The channel after which this channel gets placed

§channel_topic: Option<String>§channel_password: Option<String>§channel_maxclients: Option<i32>§channel_maxfamilyclients: Option<i32>§channel_flag_default: bool§channel_codec: Option<i32>§channel_codec_quality: Option<u8>§channel_needed_talk_power: Option<i32>§channel_icon_id: Option<IconHash>

Trait Implementations§

Source§

impl Debug for ChannelEdit

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for ChannelEdit

Source§

fn default() -> ChannelEdit

Returns the “default value” for a type. Read more
Source§

impl From<&ChannelFull> for ChannelEdit

Source§

fn from(c: &ChannelFull) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

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.