pub struct ResolvedStructType {
pub type_name: String,
pub fields: Vec<ResolvedField>,
pub is_instruction: bool,
pub is_account: bool,
pub is_event: bool,
pub is_enum: bool,
pub enum_variants: Vec<String>,
}Expand description
Resolved structure type with field information from IDL
Fields§
§type_name: String§fields: Vec<ResolvedField>§is_instruction: bool§is_account: bool§is_event: bool§is_enum: boolIf true, this is an enum type and enum_variants should be used instead of fields
enum_variants: Vec<String>For enum types, list of variant names
Trait Implementations§
Source§impl Clone for ResolvedStructType
impl Clone for ResolvedStructType
Source§fn clone(&self) -> ResolvedStructType
fn clone(&self) -> ResolvedStructType
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 ResolvedStructType
impl Debug for ResolvedStructType
Source§impl<'de> Deserialize<'de> for ResolvedStructType
impl<'de> Deserialize<'de> for ResolvedStructType
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
Auto Trait Implementations§
impl Freeze for ResolvedStructType
impl RefUnwindSafe for ResolvedStructType
impl Send for ResolvedStructType
impl Sync for ResolvedStructType
impl Unpin for ResolvedStructType
impl UnwindSafe for ResolvedStructType
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