Struct linera_chain::data_types::Event
source · pub struct Event {
pub certificate_hash: CryptoHash,
pub height: BlockHeight,
pub index: u32,
pub authenticated_signer: Option<Owner>,
pub grant: Amount,
pub refund_grant_to: Option<Account>,
pub kind: MessageKind,
pub timestamp: Timestamp,
pub message: Message,
}
Expand description
A message together with non replayable information to ensure uniqueness in a particular inbox.
Fields§
§certificate_hash: CryptoHash
The hash of the certificate that created the event.
height: BlockHeight
The height of the block that created the event.
index: u32
The index of the message.
authenticated_signer: Option<Owner>
The authenticated signer for the operation that created the event, if any.
grant: Amount
A grant to pay for the message execution.
refund_grant_to: Option<Account>
Where to send a refund for the unused part of the grant after execution, if any.
kind: MessageKind
The kind of event being delivered.
timestamp: Timestamp
The timestamp of the block that caused the message.
message: Message
The message of the event (i.e. the actual payload of a message).
Implementations§
source§impl Event
impl Event
pub fn is_skippable(&self) -> bool
pub fn is_protected(&self) -> bool
pub fn is_tracked(&self) -> bool
pub fn is_bouncing(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 InputType for Event
impl InputType for Event
§type RawValueType = Event
type RawValueType = Event
The raw type used for validator. Read more
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value
. None represents undefined.source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl OutputType for Event
impl OutputType for Event
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§async fn resolve(
&self,
_: &ContextSelectionSet<'_>,
_field: &Positioned<Field>
) -> ServerResult<Value>
async fn resolve( &self, _: &ContextSelectionSet<'_>, _field: &Positioned<Field> ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value
.source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl PartialEq for Event
impl PartialEq for Event
source§impl ScalarType for Event
impl ScalarType for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.