pub struct StoredPrivateEvent {
pub event_selector: EventSelector,
pub randomness: Fr,
pub msg_content: Vec<Fr>,
pub siloed_event_commitment: Fr,
pub contract_address: AztecAddress,
pub scopes: Vec<AztecAddress>,
pub tx_hash: TxHash,
pub l2_block_number: u64,
pub l2_block_hash: String,
pub tx_index_in_block: Option<u64>,
pub event_index_in_tx: Option<u64>,
}Expand description
A stored private event with metadata.
Fields§
§event_selector: EventSelectorThe event selector identifying the event type.
randomness: FrRandomness used in commitment.
msg_content: Vec<Fr>The decrypted message content fields.
siloed_event_commitment: FrThe siloed event commitment (unique identifier).
contract_address: AztecAddressContract address that emitted the event.
scopes: Vec<AztecAddress>Scopes (accounts) that decrypted this event.
tx_hash: TxHashTransaction hash.
l2_block_number: u64L2 block number.
l2_block_hash: StringL2 block hash.
tx_index_in_block: Option<u64>Index of the transaction within the block.
event_index_in_tx: Option<u64>Index of the event within the transaction.
Trait Implementations§
Source§impl Clone for StoredPrivateEvent
impl Clone for StoredPrivateEvent
Source§fn clone(&self) -> StoredPrivateEvent
fn clone(&self) -> StoredPrivateEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoredPrivateEvent
impl Debug for StoredPrivateEvent
Source§impl<'de> Deserialize<'de> for StoredPrivateEvent
impl<'de> Deserialize<'de> for StoredPrivateEvent
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
Auto Trait Implementations§
impl Freeze for StoredPrivateEvent
impl RefUnwindSafe for StoredPrivateEvent
impl Send for StoredPrivateEvent
impl Sync for StoredPrivateEvent
impl Unpin for StoredPrivateEvent
impl UnwindSafe for StoredPrivateEvent
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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