pub struct TableDescriptor {
pub element: ElementType,
pub minimum: u32,
pub maximum: Option<u32>,
}Expand description
Describes the properties of a table including the element types, minimum and optional maximum, number of elements in the table.
Fields§
§element: ElementTypeType of data stored in this table.
minimum: u32The minimum number of elements that must be stored in this table.
maximum: Option<u32>The maximum number of elements in this table.
Trait Implementations§
Source§impl BorshDeserialize for TableDescriptor
impl BorshDeserialize for TableDescriptor
fn deserialize_reader<__R>(reader: &mut __R) -> Result<TableDescriptor, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for TableDescriptor
impl BorshSerialize for TableDescriptor
Source§impl Clone for TableDescriptor
impl Clone for TableDescriptor
Source§fn clone(&self) -> TableDescriptor
fn clone(&self) -> TableDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableDescriptor
impl Debug for TableDescriptor
Source§impl<'de> Deserialize<'de> for TableDescriptor
impl<'de> Deserialize<'de> for TableDescriptor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TableDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TableDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&TableDescriptor> for ExternDescriptor
impl From<&TableDescriptor> for ExternDescriptor
Source§fn from(other: &TableDescriptor) -> ExternDescriptor
fn from(other: &TableDescriptor) -> ExternDescriptor
Converts to this type from the input type.
Source§impl From<TableDescriptor> for ExternDescriptor
impl From<TableDescriptor> for ExternDescriptor
Source§fn from(other: TableDescriptor) -> ExternDescriptor
fn from(other: TableDescriptor) -> ExternDescriptor
Converts to this type from the input type.
Source§impl PartialEq for TableDescriptor
impl PartialEq for TableDescriptor
Source§impl Serialize for TableDescriptor
impl Serialize for TableDescriptor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for TableDescriptor
impl Eq for TableDescriptor
impl StructuralPartialEq for TableDescriptor
Auto Trait Implementations§
impl Freeze for TableDescriptor
impl RefUnwindSafe for TableDescriptor
impl Send for TableDescriptor
impl Sync for TableDescriptor
impl Unpin for TableDescriptor
impl UnwindSafe for TableDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.