pub struct Context<T = Empty> where
T: Clone + Debug + PartialEq<T> + JsonSchema, { /* private fields */ }
Implementations
sourceimpl<T> Context<T> where
T: Clone + Debug + PartialEq<T> + JsonSchema,
impl<T> Context<T> where
T: Clone + Debug + PartialEq<T> + JsonSchema,
pub fn new() -> Context<T>
pub fn add_log<K, V>(&mut self, key: K, value: V) where
K: ToString,
V: ToString,
pub fn add_plaintext_log<K, V>(&mut self, key: K, value: V) where
K: ToString,
V: ToString,
pub fn add_message<U>(&mut self, msg: U) where
U: Into<CosmosMsg<T>>,
pub fn set_data<U>(&mut self, data: U) where
U: Into<Binary>,
Trait Implementations
sourceimpl<T> From<Context<T>> for MigrateResponse<T> where
T: Clone + Debug + PartialEq<T> + JsonSchema,
impl<T> From<Context<T>> for MigrateResponse<T> where
T: Clone + Debug + PartialEq<T> + JsonSchema,
sourcefn from(ctx: Context<T>) -> MigrateResponse<T>
fn from(ctx: Context<T>) -> MigrateResponse<T>
Converts to this type from the input type.
sourceimpl<T> From<Context<T>> for HandleResponse<T> where
T: Clone + Debug + PartialEq<T> + JsonSchema,
impl<T> From<Context<T>> for HandleResponse<T> where
T: Clone + Debug + PartialEq<T> + JsonSchema,
sourcefn from(ctx: Context<T>) -> HandleResponse<T>
fn from(ctx: Context<T>) -> HandleResponse<T>
Converts to this type from the input type.
sourceimpl<T> PartialEq<Context<T>> for Context<T> where
T: PartialEq<T> + Clone + Debug + JsonSchema,
impl<T> PartialEq<Context<T>> for Context<T> where
T: PartialEq<T> + Clone + Debug + JsonSchema,
sourceimpl<T> TryFrom<Context<T>> for InitResponse<T> where
T: Clone + Debug + PartialEq<T> + JsonSchema,
impl<T> TryFrom<Context<T>> for InitResponse<T> where
T: Clone + Debug + PartialEq<T> + JsonSchema,
impl<T> StructuralPartialEq for Context<T> where
T: Clone + Debug + PartialEq<T> + JsonSchema,
Auto Trait Implementations
impl<T> RefUnwindSafe for Context<T> where
T: RefUnwindSafe,
impl<T> Send for Context<T> where
T: Send,
impl<T> Sync for Context<T> where
T: Sync,
impl<T> Unpin for Context<T> where
T: Unpin,
impl<T> UnwindSafe for Context<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more