#[repr(u8)]pub enum AdminType {
Protocol = 0,
Funding = 1,
Pricing = 2,
FeeTier = 3,
Credits = 4,
Referrals = 5,
}Variants§
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for AdminType
impl BorshDeserialize for AdminType
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 AdminType
impl BorshSerialize for AdminType
Source§impl<'de> Deserialize<'de> for AdminType
impl<'de> Deserialize<'de> for AdminType
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<'_enum> From<&'_enum AdminType> for AdminTypeDiscriminants
impl<'_enum> From<&'_enum AdminType> for AdminTypeDiscriminants
Source§fn from(val: &'_enum AdminType) -> AdminTypeDiscriminants
fn from(val: &'_enum AdminType) -> AdminTypeDiscriminants
Converts to this type from the input type.
Source§impl From<AdminType> for AdminTypeDiscriminants
impl From<AdminType> for AdminTypeDiscriminants
Source§fn from(val: AdminType) -> AdminTypeDiscriminants
fn from(val: AdminType) -> AdminTypeDiscriminants
Converts to this type from the input type.
Source§impl JsonSchema for AdminType
impl JsonSchema for AdminType
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for AdminType
impl Ord for AdminType
Source§impl PartialOrd for AdminType
impl PartialOrd for AdminType
impl Copy for AdminType
impl Eq for AdminType
impl StructuralPartialEq for AdminType
Auto Trait Implementations§
impl Freeze for AdminType
impl RefUnwindSafe for AdminType
impl Send for AdminType
impl Sync for AdminType
impl Unpin for AdminType
impl UnsafeUnpin for AdminType
impl UnwindSafe for AdminType
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