Documentation
¶
Index ¶
- func Into(dst *IdlType, data []byte) error
- func IntoArrayLen(dst *IdlArrayLen, data []byte) error
- func Into_IdlGenericArg(dst *IdlGenericArg, data []byte) error
- type Array
- type Bool
- type Bytes
- type COption
- type Defined
- type F32
- type F64
- type Generic
- type I8
- type I16
- type I32
- type I64
- type I128
- type I256
- type IdlArrayLen
- type IdlArrayLenGeneric
- type IdlArrayLenValue
- type IdlGenericArg
- type IdlGenericArgConst
- type IdlGenericArgType
- type IdlType
- type Option
- type Pubkey
- type String
- type U8
- type U16
- type U32
- type U64
- type U128
- type U256
- type Vec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntoArrayLen ¶
func IntoArrayLen( dst *IdlArrayLen, data []byte, ) error
func Into_IdlGenericArg ¶
func Into_IdlGenericArg( dst *IdlGenericArg, data []byte, ) error
Types ¶
type Array ¶
type Array struct {
Type IdlType
Size IdlArrayLen
// contains filtered or unexported fields
}
func (Array) MarshalJSON ¶
func (*Array) UnmarshalJSON ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
func (Bool) MarshalJSON ¶
func (Bool) UnmarshalJSON ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
func (Bytes) MarshalJSON ¶
func (Bytes) UnmarshalJSON ¶
type COption ¶
type COption struct {
COption IdlType
// contains filtered or unexported fields
}
func (COption) MarshalJSON ¶
func (*COption) UnmarshalJSON ¶
type Defined ¶
type Defined struct {
Name string
Generics []IdlGenericArg
// contains filtered or unexported fields
}
func (Defined) MarshalJSON ¶
func (*Defined) UnmarshalJSON ¶
type F32 ¶
type F32 struct {
// contains filtered or unexported fields
}
func (F32) MarshalJSON ¶
func (F32) UnmarshalJSON ¶
type F64 ¶
type F64 struct {
// contains filtered or unexported fields
}
func (F64) MarshalJSON ¶
func (F64) UnmarshalJSON ¶
type Generic ¶
type Generic struct {
Generic string
// contains filtered or unexported fields
}
func (Generic) MarshalJSON ¶
func (*Generic) UnmarshalJSON ¶
type I8 ¶
type I8 struct {
// contains filtered or unexported fields
}
func (I8) MarshalJSON ¶
func (I8) UnmarshalJSON ¶
type I16 ¶
type I16 struct {
// contains filtered or unexported fields
}
func (I16) MarshalJSON ¶
func (I16) UnmarshalJSON ¶
type I32 ¶
type I32 struct {
// contains filtered or unexported fields
}
func (I32) MarshalJSON ¶
func (I32) UnmarshalJSON ¶
type I64 ¶
type I64 struct {
// contains filtered or unexported fields
}
func (I64) MarshalJSON ¶
func (I64) UnmarshalJSON ¶
type I128 ¶
type I128 struct {
// contains filtered or unexported fields
}
func (I128) MarshalJSON ¶
func (I128) UnmarshalJSON ¶
type I256 ¶
type I256 struct {
// contains filtered or unexported fields
}
func (I256) MarshalJSON ¶
func (I256) UnmarshalJSON ¶
type IdlArrayLen ¶
type IdlArrayLenGeneric ¶
type IdlArrayLenGeneric struct {
Generic string
// contains filtered or unexported fields
}
func (IdlArrayLenGeneric) MarshalJSON ¶
func (a IdlArrayLenGeneric) MarshalJSON() ([]byte, error)
func (IdlArrayLenGeneric) String ¶
func (a IdlArrayLenGeneric) String() string
func (*IdlArrayLenGeneric) UnmarshalJSON ¶
func (a *IdlArrayLenGeneric) UnmarshalJSON(data []byte) error
type IdlArrayLenValue ¶
type IdlArrayLenValue struct {
Value int
// contains filtered or unexported fields
}
func (IdlArrayLenValue) MarshalJSON ¶
func (a IdlArrayLenValue) MarshalJSON() ([]byte, error)
func (IdlArrayLenValue) String ¶
func (a IdlArrayLenValue) String() string
func (*IdlArrayLenValue) UnmarshalJSON ¶
func (a *IdlArrayLenValue) UnmarshalJSON(data []byte) error
type IdlGenericArg ¶
type IdlGenericArg interface {
// contains filtered or unexported methods
}
pub enum IdlGenericArg {
Type {
#[serde(rename = "type")]
ty: IdlType,
},
Const {
value: String,
},
}
type IdlGenericArgConst ¶
type IdlGenericArgConst struct {
// pub kind: String,
Kind string `json:"kind"`
// pub value: String,
Value string `json:"value"`
}
func (IdlGenericArgConst) MarshalJSON ¶
func (i IdlGenericArgConst) MarshalJSON() ([]byte, error)
func (*IdlGenericArgConst) UnmarshalJSON ¶
func (i *IdlGenericArgConst) UnmarshalJSON(data []byte) error
type IdlGenericArgType ¶
type IdlGenericArgType struct {
// pub kind: String,
Kind string `json:"kind"`
// #[serde(rename = "type")]
// pub ty: IdlType,
Ty IdlType `json:"type"`
}
func (IdlGenericArgType) MarshalJSON ¶
func (i IdlGenericArgType) MarshalJSON() ([]byte, error)
func (*IdlGenericArgType) UnmarshalJSON ¶
func (i *IdlGenericArgType) UnmarshalJSON(data []byte) error
type Option ¶
type Option struct {
Option IdlType
// contains filtered or unexported fields
}
func (Option) MarshalJSON ¶
func (*Option) UnmarshalJSON ¶
type Pubkey ¶
type Pubkey struct {
// contains filtered or unexported fields
}
func (Pubkey) MarshalJSON ¶
func (Pubkey) UnmarshalJSON ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
func (String) MarshalJSON ¶
func (String) UnmarshalJSON ¶
type U8 ¶
type U8 struct {
// contains filtered or unexported fields
}
func (U8) MarshalJSON ¶
func (U8) UnmarshalJSON ¶
type U16 ¶
type U16 struct {
// contains filtered or unexported fields
}
func (U16) MarshalJSON ¶
func (U16) UnmarshalJSON ¶
type U32 ¶
type U32 struct {
// contains filtered or unexported fields
}
func (U32) MarshalJSON ¶
func (U32) UnmarshalJSON ¶
type U64 ¶
type U64 struct {
// contains filtered or unexported fields
}
func (U64) MarshalJSON ¶
func (U64) UnmarshalJSON ¶
type U128 ¶
type U128 struct {
// contains filtered or unexported fields
}
func (U128) MarshalJSON ¶
func (U128) UnmarshalJSON ¶
type U256 ¶
type U256 struct {
// contains filtered or unexported fields
}
func (U256) MarshalJSON ¶
func (U256) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.