pub struct EventsBlocksRequest {
pub network_identifier: NetworkIdentifier,
pub offset: Option<u64>,
pub limit: Option<u64>,
}Expand description
EventsBlocksRequest : EventsBlocksRequest is utilized to fetch a sequence of BlockEvents indicating which blocks were added and removed from storage to reach the current state.
Fields§
§network_identifier: NetworkIdentifier§offset: Option<u64>offset is the offset into the event stream to sync events from. If this field is not populated, we return the limit events backwards from tip. If this is set to 0, we start from the beginning.
limit: Option<u64>limit is the maximum number of events to fetch in one call. The implementation may return <= limit events.
Implementations§
Source§impl EventsBlocksRequest
impl EventsBlocksRequest
Sourcepub fn new(network_identifier: NetworkIdentifier) -> EventsBlocksRequest
pub fn new(network_identifier: NetworkIdentifier) -> EventsBlocksRequest
EventsBlocksRequest is utilized to fetch a sequence of BlockEvents indicating which blocks were added and removed from storage to reach the current state.
Trait Implementations§
Source§impl Clone for EventsBlocksRequest
impl Clone for EventsBlocksRequest
Source§fn clone(&self) -> EventsBlocksRequest
fn clone(&self) -> EventsBlocksRequest
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 EventsBlocksRequest
impl Debug for EventsBlocksRequest
Source§impl Default for EventsBlocksRequest
impl Default for EventsBlocksRequest
Source§fn default() -> EventsBlocksRequest
fn default() -> EventsBlocksRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventsBlocksRequest
impl<'de> Deserialize<'de> for EventsBlocksRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventsBlocksRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventsBlocksRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EventsBlocksRequest
impl PartialEq for EventsBlocksRequest
Source§impl Serialize for EventsBlocksRequest
impl Serialize for EventsBlocksRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for EventsBlocksRequest
impl StructuralPartialEq for EventsBlocksRequest
Auto Trait Implementations§
impl Freeze for EventsBlocksRequest
impl RefUnwindSafe for EventsBlocksRequest
impl Send for EventsBlocksRequest
impl Sync for EventsBlocksRequest
impl Unpin for EventsBlocksRequest
impl UnwindSafe for EventsBlocksRequest
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