pub struct IdlTypeDef {
pub name: String,
pub docs: Vec<String>,
pub serialization: Option<IdlSerialization>,
pub repr: Option<IdlRepr>,
pub type_def: IdlTypeDefKind,
}Fields§
§name: String§docs: Vec<String>§serialization: Option<IdlSerialization>Serialization format: “borsh” (default), “bytemuck”, or “bytemuckunsafe”
repr: Option<IdlRepr>Repr annotation for zero-copy types (e.g., {“kind”: “c”})
type_def: IdlTypeDefKindTrait Implementations§
Source§impl Clone for IdlTypeDef
impl Clone for IdlTypeDef
Source§fn clone(&self) -> IdlTypeDef
fn clone(&self) -> IdlTypeDef
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 IdlTypeDef
impl Debug for IdlTypeDef
Source§impl<'de> Deserialize<'de> for IdlTypeDef
impl<'de> Deserialize<'de> for IdlTypeDef
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 IdlTypeDef
impl RefUnwindSafe for IdlTypeDef
impl Send for IdlTypeDef
impl Sync for IdlTypeDef
impl Unpin for IdlTypeDef
impl UnsafeUnpin for IdlTypeDef
impl UnwindSafe for IdlTypeDef
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