idltype

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Into

func Into(
	dst *IdlType,
	data []byte,
) error

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 (a Array) MarshalJSON() ([]byte, error)

func (Array) String

func (a Array) String() string

func (*Array) UnmarshalJSON

func (a *Array) UnmarshalJSON(data []byte) error

type Bool

type Bool struct {
	// contains filtered or unexported fields
}

func (Bool) MarshalJSON

func (Bool) MarshalJSON() ([]byte, error)

func (Bool) String

func (Bool) String() string

func (Bool) UnmarshalJSON

func (Bool) UnmarshalJSON(data []byte) error

type Bytes

type Bytes struct {
	// contains filtered or unexported fields
}

func (Bytes) MarshalJSON

func (Bytes) MarshalJSON() ([]byte, error)

func (Bytes) String

func (Bytes) String() string

func (Bytes) UnmarshalJSON

func (Bytes) UnmarshalJSON(data []byte) error

type COption

type COption struct {
	COption IdlType
	// contains filtered or unexported fields
}

func (COption) MarshalJSON

func (o COption) MarshalJSON() ([]byte, error)

func (COption) String

func (o COption) String() string

func (*COption) UnmarshalJSON

func (o *COption) UnmarshalJSON(data []byte) error

type Defined

type Defined struct {
	Name     string
	Generics []IdlGenericArg
	// contains filtered or unexported fields
}

func (Defined) MarshalJSON

func (a Defined) MarshalJSON() ([]byte, error)

func (Defined) String

func (a Defined) String() string

func (*Defined) UnmarshalJSON

func (a *Defined) UnmarshalJSON(data []byte) error

type F32

type F32 struct {
	// contains filtered or unexported fields
}

func (F32) MarshalJSON

func (F32) MarshalJSON() ([]byte, error)

func (F32) String

func (F32) String() string

func (F32) UnmarshalJSON

func (F32) UnmarshalJSON(data []byte) error

type F64

type F64 struct {
	// contains filtered or unexported fields
}

func (F64) MarshalJSON

func (F64) MarshalJSON() ([]byte, error)

func (F64) String

func (F64) String() string

func (F64) UnmarshalJSON

func (F64) UnmarshalJSON(data []byte) error

type Generic

type Generic struct {
	Generic string
	// contains filtered or unexported fields
}

func (Generic) MarshalJSON

func (a Generic) MarshalJSON() ([]byte, error)

func (Generic) String

func (a Generic) String() string

func (*Generic) UnmarshalJSON

func (a *Generic) UnmarshalJSON(data []byte) error

type I8

type I8 struct {
	// contains filtered or unexported fields
}

func (I8) MarshalJSON

func (I8) MarshalJSON() ([]byte, error)

func (I8) String

func (I8) String() string

func (I8) UnmarshalJSON

func (I8) UnmarshalJSON(data []byte) error

type I16

type I16 struct {
	// contains filtered or unexported fields
}

func (I16) MarshalJSON

func (I16) MarshalJSON() ([]byte, error)

func (I16) String

func (I16) String() string

func (I16) UnmarshalJSON

func (I16) UnmarshalJSON(data []byte) error

type I32

type I32 struct {
	// contains filtered or unexported fields
}

func (I32) MarshalJSON

func (I32) MarshalJSON() ([]byte, error)

func (I32) String

func (I32) String() string

func (I32) UnmarshalJSON

func (I32) UnmarshalJSON(data []byte) error

type I64

type I64 struct {
	// contains filtered or unexported fields
}

func (I64) MarshalJSON

func (I64) MarshalJSON() ([]byte, error)

func (I64) String

func (I64) String() string

func (I64) UnmarshalJSON

func (I64) UnmarshalJSON(data []byte) error

type I128

type I128 struct {
	// contains filtered or unexported fields
}

func (I128) MarshalJSON

func (I128) MarshalJSON() ([]byte, error)

func (I128) String

func (I128) String() string

func (I128) UnmarshalJSON

func (I128) UnmarshalJSON(data []byte) error

type I256

type I256 struct {
	// contains filtered or unexported fields
}

func (I256) MarshalJSON

func (I256) MarshalJSON() ([]byte, error)

func (I256) String

func (I256) String() string

func (I256) UnmarshalJSON

func (I256) UnmarshalJSON(data []byte) error

type IdlArrayLen

type IdlArrayLen interface {
	String() string
	MarshalJSON() ([]byte, error)
	UnmarshalJSON(data []byte) error
	// contains filtered or unexported methods
}

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 IdlType

type IdlType interface {
	String() string
	MarshalJSON() ([]byte, error)
	UnmarshalJSON(data []byte) error
	// contains filtered or unexported methods
}

type Option

type Option struct {
	Option IdlType
	// contains filtered or unexported fields
}

func (Option) MarshalJSON

func (o Option) MarshalJSON() ([]byte, error)

func (Option) String

func (o Option) String() string

func (*Option) UnmarshalJSON

func (o *Option) UnmarshalJSON(data []byte) error

type Pubkey

type Pubkey struct {
	// contains filtered or unexported fields
}

func (Pubkey) MarshalJSON

func (Pubkey) MarshalJSON() ([]byte, error)

func (Pubkey) String

func (Pubkey) String() string

func (Pubkey) UnmarshalJSON

func (Pubkey) UnmarshalJSON(data []byte) error

type String

type String struct {
	// contains filtered or unexported fields
}

func (String) MarshalJSON

func (String) MarshalJSON() ([]byte, error)

func (String) String

func (String) String() string

func (String) UnmarshalJSON

func (String) UnmarshalJSON(data []byte) error

type U8

type U8 struct {
	// contains filtered or unexported fields
}

func (U8) MarshalJSON

func (U8) MarshalJSON() ([]byte, error)

func (U8) String

func (U8) String() string

func (U8) UnmarshalJSON

func (U8) UnmarshalJSON(data []byte) error

type U16

type U16 struct {
	// contains filtered or unexported fields
}

func (U16) MarshalJSON

func (U16) MarshalJSON() ([]byte, error)

func (U16) String

func (U16) String() string

func (U16) UnmarshalJSON

func (U16) UnmarshalJSON(data []byte) error

type U32

type U32 struct {
	// contains filtered or unexported fields
}

func (U32) MarshalJSON

func (U32) MarshalJSON() ([]byte, error)

func (U32) String

func (U32) String() string

func (U32) UnmarshalJSON

func (U32) UnmarshalJSON(data []byte) error

type U64

type U64 struct {
	// contains filtered or unexported fields
}

func (U64) MarshalJSON

func (U64) MarshalJSON() ([]byte, error)

func (U64) String

func (U64) String() string

func (U64) UnmarshalJSON

func (U64) UnmarshalJSON(data []byte) error

type U128

type U128 struct {
	// contains filtered or unexported fields
}

func (U128) MarshalJSON

func (U128) MarshalJSON() ([]byte, error)

func (U128) String

func (U128) String() string

func (U128) UnmarshalJSON

func (U128) UnmarshalJSON(data []byte) error

type U256

type U256 struct {
	// contains filtered or unexported fields
}

func (U256) MarshalJSON

func (U256) MarshalJSON() ([]byte, error)

func (U256) String

func (U256) String() string

func (U256) UnmarshalJSON

func (U256) UnmarshalJSON(data []byte) error

type Vec

type Vec struct {
	Vec IdlType
	// contains filtered or unexported fields
}

func (Vec) MarshalJSON

func (v Vec) MarshalJSON() ([]byte, error)

func (Vec) String

func (v Vec) String() string

func (*Vec) UnmarshalJSON

func (v *Vec) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL