Struct HudaddSpec

Source
pub struct HudaddSpec {
Show 16 fields pub server_id: u32, pub typ: u8, pub pos: v2f, pub name: String, pub scale: v2f, pub text: String, pub number: u32, pub item: u32, pub dir: u32, pub align: v2f, pub offset: v2f, pub world_pos: Option<v3f>, pub size: Option<v2s32>, pub z_index: Option<s16>, pub text2: Option<String>, pub style: Option<u32>,
}

Fields§

§server_id: u32§typ: u8§pos: v2f§name: String§scale: v2f§text: String§number: u32§item: u32§dir: u32§align: v2f§offset: v2f§world_pos: Option<v3f>§size: Option<v2s32>§z_index: Option<s16>§text2: Option<String>§style: Option<u32>

Trait Implementations§

Source§

impl Clone for HudaddSpec

Source§

fn clone(&self) -> HudaddSpec

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HudaddSpec

Source§

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

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

impl Deserialize for HudaddSpec

Source§

type Output = HudaddSpec

Output should be Self, except for wrapper types.
Source§

fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>

Source§

impl From<HudaddSpec> for ToClientCommand

Source§

fn from(value: HudaddSpec) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for HudaddSpec

Source§

fn eq(&self, other: &HudaddSpec) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for HudaddSpec

Source§

impl StructuralPartialEq for HudaddSpec

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V