pub enum EventKind {
    CyclesSent {
        to: Principal,
        amount: u64,
        refund: u64,
    },
    CyclesReceived {
        from: Principal,
        amount: u64,
    },
    AddressAdded {
        id: Principal,
        name: Option<String>,
        role: Role,
    },
    AddressRemoved {
        id: Principal,
    },
    CanisterCreated {
        canister: Principal,
        cycles: u64,
    },
    CanisterCalled {
        canister: Principal,
        method_name: String,
        cycles: u64,
    },
}
Expand description

The possible kinds of events that can be stored in an Event.

Variants

CyclesSent

Fields

to: Principal

The canister the cycles were sent to.

amount: u64

The number of cycles that were initially sent.

refund: u64

The number of cycles that were refunded by the canister.

Cycles were sent to a canister.

CyclesReceived

Fields

from: Principal

The canister that sent the cycles.

amount: u64

The number of cycles received.

Cycles were received from a canister.

AddressAdded

Fields

id: Principal

The principal that was added.

name: Option<String>

The friendly name of the principal, if any.

role: Role

The significance of this principal to the wallet.

A known principal was added to the address book.

AddressRemoved

Fields

id: Principal

The principal that was removed.

A principal was removed from the address book.

CanisterCreated

Fields

canister: Principal

The canister that was created.

cycles: u64

The initial cycles balance that the canister was created with.

A canister was created.

CanisterCalled

Fields

canister: Principal

The canister that was called.

method_name: String

The name of the canister method that was called.

cycles: u64

The number of cycles that were supplied with the call.

A call was forwarded to the canister.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more