Struct yy_typings::CommonData
source · [−]pub struct CommonData<T: Default, N: Default = String, const MAJOR: usize = 1, const MINOR: usize = 0> {
pub resource_type: T,
pub resource_version: ResourceVersion,
pub name: N,
}
Expand description
The common fields in all Resource files.
Fields
resource_type: T
resource_version: ResourceVersion
The resource version of this yy file. At default 1.0.
name: N
The name of the object. This is the human readable name used in the IDE.
Implementations
Trait Implementations
sourceimpl<T: Clone + Default, N: Clone + Default, const MAJOR: usize, const MINOR: usize> Clone for CommonData<T, N, MAJOR, MINOR>
impl<T: Clone + Default, N: Clone + Default, const MAJOR: usize, const MINOR: usize> Clone for CommonData<T, N, MAJOR, MINOR>
sourcefn clone(&self) -> CommonData<T, N, MAJOR, MINOR>
fn clone(&self) -> CommonData<T, N, MAJOR, MINOR>
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<T: Debug + Default, N: Debug + Default, const MAJOR: usize, const MINOR: usize> Debug for CommonData<T, N, MAJOR, MINOR>
impl<T: Debug + Default, N: Debug + Default, const MAJOR: usize, const MINOR: usize> Debug for CommonData<T, N, MAJOR, MINOR>
sourceimpl<T: Default, N: Default, const MAJOR: usize, const MINOR: usize> Default for CommonData<T, N, MAJOR, MINOR>
impl<T: Default, N: Default, const MAJOR: usize, const MINOR: usize> Default for CommonData<T, N, MAJOR, MINOR>
sourceimpl<'de, T: Default, N: Default, const MAJOR: usize, const MINOR: usize> Deserialize<'de> for CommonData<T, N, MAJOR, MINOR>where
T: Deserialize<'de>,
N: Deserialize<'de>,
impl<'de, T: Default, N: Default, const MAJOR: usize, const MINOR: usize> Deserialize<'de> for CommonData<T, N, MAJOR, MINOR>where
T: Deserialize<'de>,
N: Deserialize<'de>,
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<T: Hash + Default, N: Hash + Default, const MAJOR: usize, const MINOR: usize> Hash for CommonData<T, N, MAJOR, MINOR>
impl<T: Hash + Default, N: Hash + Default, const MAJOR: usize, const MINOR: usize> Hash for CommonData<T, N, MAJOR, MINOR>
sourceimpl<T: Ord + Default, N: Ord + Default, const MAJOR: usize, const MINOR: usize> Ord for CommonData<T, N, MAJOR, MINOR>
impl<T: Ord + Default, N: Ord + Default, const MAJOR: usize, const MINOR: usize> Ord for CommonData<T, N, MAJOR, MINOR>
sourcefn cmp(&self, other: &CommonData<T, N, MAJOR, MINOR>) -> Ordering
fn cmp(&self, other: &CommonData<T, N, MAJOR, MINOR>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq + Default, N: PartialEq + Default, const MAJOR: usize, const MINOR: usize> PartialEq<CommonData<T, N, MAJOR, MINOR>> for CommonData<T, N, MAJOR, MINOR>
impl<T: PartialEq + Default, N: PartialEq + Default, const MAJOR: usize, const MINOR: usize> PartialEq<CommonData<T, N, MAJOR, MINOR>> for CommonData<T, N, MAJOR, MINOR>
sourcefn eq(&self, other: &CommonData<T, N, MAJOR, MINOR>) -> bool
fn eq(&self, other: &CommonData<T, N, MAJOR, MINOR>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<T: PartialOrd + Default, N: PartialOrd + Default, const MAJOR: usize, const MINOR: usize> PartialOrd<CommonData<T, N, MAJOR, MINOR>> for CommonData<T, N, MAJOR, MINOR>
impl<T: PartialOrd + Default, N: PartialOrd + Default, const MAJOR: usize, const MINOR: usize> PartialOrd<CommonData<T, N, MAJOR, MINOR>> for CommonData<T, N, MAJOR, MINOR>
sourcefn partial_cmp(&self, other: &CommonData<T, N, MAJOR, MINOR>) -> Option<Ordering>
fn partial_cmp(&self, other: &CommonData<T, N, MAJOR, MINOR>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<T: Default, N: Default, const MAJOR: usize, const MINOR: usize> Serialize for CommonData<T, N, MAJOR, MINOR>where
T: Serialize,
N: Serialize,
impl<T: Default, N: Default, const MAJOR: usize, const MINOR: usize> Serialize for CommonData<T, N, MAJOR, MINOR>where
T: Serialize,
N: Serialize,
impl<T: Eq + Default, N: Eq + Default, const MAJOR: usize, const MINOR: usize> Eq for CommonData<T, N, MAJOR, MINOR>
impl<T: Default, N: Default, const MAJOR: usize, const MINOR: usize> StructuralEq for CommonData<T, N, MAJOR, MINOR>
impl<T: Default, N: Default, const MAJOR: usize, const MINOR: usize> StructuralPartialEq for CommonData<T, N, MAJOR, MINOR>
Auto Trait Implementations
impl<T, N, const MAJOR: usize, const MINOR: usize> RefUnwindSafe for CommonData<T, N, MAJOR, MINOR>where
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, N, const MAJOR: usize, const MINOR: usize> Send for CommonData<T, N, MAJOR, MINOR>where
N: Send,
T: Send,
impl<T, N, const MAJOR: usize, const MINOR: usize> Sync for CommonData<T, N, MAJOR, MINOR>where
N: Sync,
T: Sync,
impl<T, N, const MAJOR: usize, const MINOR: usize> Unpin for CommonData<T, N, MAJOR, MINOR>where
N: Unpin,
T: Unpin,
impl<T, N, const MAJOR: usize, const MINOR: usize> UnwindSafe for CommonData<T, N, MAJOR, MINOR>where
N: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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