pub struct TypeRecord {
pub fields: TryVec<RecordField>,
pub abi: CanonicalAbiInfo,
}Expand description
Shape of a “record” type in interface types.
This is equivalent to a struct in Rust.
Fields§
§fields: TryVec<RecordField>The fields that are contained within this struct type.
abi: CanonicalAbiInfoByte information about this type in the canonical ABI.
Trait Implementations§
Source§impl Debug for TypeRecord
impl Debug for TypeRecord
Source§impl<'de> Deserialize<'de> for TypeRecord
impl<'de> Deserialize<'de> for TypeRecord
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
impl Eq for TypeRecord
Source§impl Hash for TypeRecord
impl Hash for TypeRecord
Source§impl PartialEq for TypeRecord
impl PartialEq for TypeRecord
Source§impl Serialize for TypeRecord
impl Serialize for TypeRecord
impl StructuralPartialEq for TypeRecord
Source§impl TryClone for TypeRecord
impl TryClone for TypeRecord
Source§fn try_clone(&self) -> Result<Self, OutOfMemory>
fn try_clone(&self) -> Result<Self, OutOfMemory>
Attempt to clone
self, returning an error if any allocation fails
during cloning.§fn clone_panic_on_oom(&self) -> Self
fn clone_panic_on_oom(&self) -> Self
Clone
self, panicking on allocation failure.Auto Trait Implementations§
impl Freeze for TypeRecord
impl RefUnwindSafe for TypeRecord
impl Send for TypeRecord
impl Sync for TypeRecord
impl Unpin for TypeRecord
impl UnsafeUnpin for TypeRecord
impl UnwindSafe for TypeRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> TryToOwned for Twhere
T: TryClone,
impl<T> TryToOwned for Twhere
T: TryClone,
§fn try_to_owned(&self) -> Result<<T as TryToOwned>::Owned, OutOfMemory>
fn try_to_owned(&self) -> Result<<T as TryToOwned>::Owned, OutOfMemory>
Try to allocate an owned version of
self.