pub enum SchemaType {
Governance,
Type(String),
AllSchemas,
}Variants§
Implementations§
Source§impl SchemaType
impl SchemaType
Trait Implementations§
Source§impl BorshDeserialize for SchemaType
impl BorshDeserialize for SchemaType
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
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 SchemaType
impl BorshSerialize for SchemaType
Source§impl Clone for SchemaType
impl Clone for SchemaType
Source§fn clone(&self) -> SchemaType
fn clone(&self) -> SchemaType
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 SchemaType
impl Debug for SchemaType
Source§impl Default for SchemaType
impl Default for SchemaType
Source§fn default() -> SchemaType
fn default() -> SchemaType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaType
impl<'de> Deserialize<'de> for SchemaType
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 Display for SchemaType
impl Display for SchemaType
Source§impl EnumExt for SchemaType
impl EnumExt for SchemaType
Source§impl FromStr for SchemaType
impl FromStr for SchemaType
Source§impl Hash for SchemaType
impl Hash for SchemaType
Source§impl Ord for SchemaType
impl Ord for SchemaType
Source§fn cmp(&self, other: &SchemaType) -> Ordering
fn cmp(&self, other: &SchemaType) -> 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 PartialEq for SchemaType
impl PartialEq for SchemaType
Source§impl PartialOrd for SchemaType
impl PartialOrd for SchemaType
Source§impl Serialize for SchemaType
impl Serialize for SchemaType
impl Eq for SchemaType
impl StructuralPartialEq for SchemaType
Auto Trait Implementations§
impl Freeze for SchemaType
impl RefUnwindSafe for SchemaType
impl Send for SchemaType
impl Sync for SchemaType
impl Unpin for SchemaType
impl UnwindSafe for SchemaType
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