pub struct CoreLog {
pub address: Address,
pub block_hash: Option<B256>,
pub block_number: Option<U64>,
pub data: Bytes,
pub log_index: Option<U64>,
pub removed: bool,
pub topics: Vec<B256>,
pub tx_index: Option<U64>,
pub tx_hash: Option<B256>,
}Fields§
§address: Address§block_hash: Option<B256>§block_number: Option<U64>§data: Bytes§log_index: Option<U64>§removed: bool§topics: Vec<B256>§tx_index: Option<U64>§tx_hash: Option<B256>Implementations§
Source§impl CoreLog
impl CoreLog
pub async fn insert( &self, pool: &PgPool, network: NetworkKind, ) -> Result<(), SqlError>
pub async fn emit( &self, queue: &Client, network: &NetworkKind, ) -> Result<(), PropagateError>
pub async fn stream( &self, queue: &Client, network: &NetworkKind, ) -> Result<(), PropagateError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CoreLog
impl<'de> Deserialize<'de> for CoreLog
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<'a, R: Row> FromRow<'a, R> for CoreLogwhere
&'a str: ColumnIndex<R>,
Address: Decode<'a, R::Database> + Type<R::Database>,
Option<B256>: Decode<'a, R::Database> + Type<R::Database>,
Option<U64>: Decode<'a, R::Database> + Type<R::Database>,
Bytes: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Vec<B256>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for CoreLogwhere
&'a str: ColumnIndex<R>,
Address: Decode<'a, R::Database> + Type<R::Database>,
Option<B256>: Decode<'a, R::Database> + Type<R::Database>,
Option<U64>: Decode<'a, R::Database> + Type<R::Database>,
Bytes: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Vec<B256>: Decode<'a, R::Database> + Type<R::Database>,
Source§impl<'__s> ToSchema<'__s> for CoreLog
impl<'__s> ToSchema<'__s> for CoreLog
impl Eq for CoreLog
impl StructuralPartialEq for CoreLog
Auto Trait Implementations§
impl !Freeze for CoreLog
impl RefUnwindSafe for CoreLog
impl Send for CoreLog
impl Sync for CoreLog
impl Unpin for CoreLog
impl UnwindSafe for CoreLog
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,
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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