pub struct Callback {
pub version: u8,
pub program: StringPubkey,
pub shared_data: StringPubkey,
pub partitioned_data: StringPubkey,
}Expand description
Callback.
Fields§
§version: u8Callback version.
program: StringPubkeyCallback program ID.
The address of shared data account.
partitioned_data: StringPubkeyThe address of partitioned data account.
Implementations§
Source§impl Callback
impl Callback
Sourcepub fn from_header(header: &ActionHeader) -> Result<Option<Self>>
pub fn from_header(header: &ActionHeader) -> Result<Option<Self>>
Create from ActionHeader.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Callback
impl<'de> Deserialize<'de> for Callback
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 FromWasmAbi for Callbackwhere
Self: DeserializeOwned,
impl FromWasmAbi for Callbackwhere
Self: DeserializeOwned,
Source§impl OptionFromWasmAbi for Callbackwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for Callbackwhere
Self: DeserializeOwned,
Source§impl RefFromWasmAbi for Callbackwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for Callbackwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§impl Tsify for Callback
impl Tsify for Callback
const DECL: &'static str = "/**\n * Callback.\n */\nexport interface Callback {\n /**\n * Callback version.\n */\n version: number;\n /**\n * Callback program ID.\n */\n program: StringPubkey;\n /**\n * The address of shared data account.\n */\n shared_data: StringPubkey;\n /**\n * The address of partitioned data account.\n */\n partitioned_data: StringPubkey;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for Callbackwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for Callbackwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Auto Trait Implementations§
impl Freeze for Callback
impl RefUnwindSafe for Callback
impl Send for Callback
impl Sync for Callback
impl Unpin for Callback
impl UnwindSafe for Callback
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more