Struct ink_metadata::layout::FieldLayout
source · pub struct FieldLayout<F: Form = MetaForm> { /* private fields */ }
Expand description
The layout for a particular field of a struct layout.
Implementations§
Trait Implementations§
source§impl<'de, F: Form> Deserialize<'de> for FieldLayout<F>where
F::Type: DeserializeOwned,
F::String: DeserializeOwned,
impl<'de, F: Form> Deserialize<'de> for FieldLayout<F>where
F::Type: DeserializeOwned,
F::String: DeserializeOwned,
source§fn 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
source§impl IntoPortable for FieldLayout
impl IntoPortable for FieldLayout
§type Output = FieldLayout<PortableForm>
type Output = FieldLayout<PortableForm>
The portable version of
Self
.source§fn into_portable(self, registry: &mut Registry) -> Self::Output
fn into_portable(self, registry: &mut Registry) -> Self::Output
Convert
self
to the portable form by using the registry for caching.source§impl<F: Ord + Form> Ord for FieldLayout<F>where
F::String: Ord,
impl<F: Ord + Form> Ord for FieldLayout<F>where
F::String: Ord,
source§fn cmp(&self, other: &FieldLayout<F>) -> Ordering
fn cmp(&self, other: &FieldLayout<F>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<F: PartialEq + Form> PartialEq<FieldLayout<F>> for FieldLayout<F>where
F::String: PartialEq,
impl<F: PartialEq + Form> PartialEq<FieldLayout<F>> for FieldLayout<F>where
F::String: PartialEq,
source§fn eq(&self, other: &FieldLayout<F>) -> bool
fn eq(&self, other: &FieldLayout<F>) -> bool
source§impl<F: PartialOrd + Form> PartialOrd<FieldLayout<F>> for FieldLayout<F>where
F::String: PartialOrd,
impl<F: PartialOrd + Form> PartialOrd<FieldLayout<F>> for FieldLayout<F>where
F::String: PartialOrd,
source§fn partial_cmp(&self, other: &FieldLayout<F>) -> Option<Ordering>
fn partial_cmp(&self, other: &FieldLayout<F>) -> Option<Ordering>
1.0.0 · source§fn 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