Struct cap_sdk::TypedIndefiniteEvent
source · [−]pub struct TypedIndefiniteEvent<T> where
T: TryFromEvent + IntoEvent + Sized + Clone, {
pub caller: Principal,
pub details: T,
}Expand description
A typed indefinite event.
You can construct an IndefiniteEvent using a builder, then cast it to
a TypedIndefiniteEvent with TryInto.
Fields
caller: PrincipalThe caller that initiated the call on the token contract.
details: TDetails of the transaction.
Implementations
sourceimpl<T: IntoEvent + TryFromEvent + Clone> TypedIndefiniteEvent<T>
impl<T: IntoEvent + TryFromEvent + Clone> TypedIndefiniteEvent<T>
Trait Implementations
sourceimpl<T: Clone> Clone for TypedIndefiniteEvent<T> where
T: TryFromEvent + IntoEvent + Sized + Clone,
impl<T: Clone> Clone for TypedIndefiniteEvent<T> where
T: TryFromEvent + IntoEvent + Sized + Clone,
sourcefn clone(&self) -> TypedIndefiniteEvent<T>
fn clone(&self) -> TypedIndefiniteEvent<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<T: TryFromEvent + IntoEvent + Clone> Into<IndefiniteEvent> for TypedIndefiniteEvent<T>
impl<T: TryFromEvent + IntoEvent + Clone> Into<IndefiniteEvent> for TypedIndefiniteEvent<T>
sourcefn into(self) -> IndefiniteEvent
fn into(self) -> IndefiniteEvent
Converts this type into the (usually inferred) input type.
sourceimpl<T: TryFromEvent + IntoEvent + Clone> TryFrom<IndefiniteEvent> for TypedIndefiniteEvent<T>
impl<T: TryFromEvent + IntoEvent + Clone> TryFrom<IndefiniteEvent> for TypedIndefiniteEvent<T>
type Error = <T as TryFromEvent>::Error
type Error = <T as TryFromEvent>::Error
The type returned in the event of a conversion error.
sourcefn try_from(value: IndefiniteEvent) -> Result<Self, Self::Error>
fn try_from(value: IndefiniteEvent) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for TypedIndefiniteEvent<T> where
T: RefUnwindSafe,
impl<T> Send for TypedIndefiniteEvent<T> where
T: Send,
impl<T> Sync for TypedIndefiniteEvent<T> where
T: Sync,
impl<T> Unpin for TypedIndefiniteEvent<T> where
T: Unpin,
impl<T> UnwindSafe for TypedIndefiniteEvent<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