Struct substreams_antelope_core::pb::RamOp
source · pub struct RamOp {
pub operation: i32,
pub action_index: u32,
pub payer: String,
pub delta: i64,
pub usage: u64,
pub namespace: i32,
pub action: i32,
pub unique_key: String,
}
Fields§
§operation: i32
Operation is the legacy operation tag that we used initially. This is replaced
by a combination of Namespce
and Action
.
Deprecated: Use Namespace
and Action
instead to determine what the RAM operation represents
action_index: u32
§payer: String
§delta: i64
§usage: u64
§namespace: i32
Namespace representing the category the RAM operation belong to, like account, table_row, table, etc.
This coupled with action
replaces the operation
field.
action: i32
Namespace representing the action the RAM operation did, like add, delete or remove an object.
This coupled with action
replaces the operation
field.
unique_key: String
UniqueKey gives a unique key to the operation, this unique key is opaque, does not necessarly represents anything and should uniquely represents the RAM Operation within a given timeframe of block (a key should never overlap any other keys (per namespace), on any blocks span).
Implementations§
source§impl RamOp
impl RamOp
sourcepub fn operation(&self) -> Operation
pub fn operation(&self) -> Operation
Returns the enum value of operation
, or the default if the field is set to an invalid enum value.
sourcepub fn set_operation(&mut self, value: Operation)
pub fn set_operation(&mut self, value: Operation)
Sets operation
to the provided enum value.
sourcepub fn namespace(&self) -> Namespace
pub fn namespace(&self) -> Namespace
Returns the enum value of namespace
, or the default if the field is set to an invalid enum value.
sourcepub fn set_namespace(&mut self, value: Namespace)
pub fn set_namespace(&mut self, value: Namespace)
Sets namespace
to the provided enum value.
sourcepub fn action(&self) -> Action
pub fn action(&self) -> Action
Returns the enum value of action
, or the default if the field is set to an invalid enum value.
sourcepub fn set_action(&mut self, value: Action)
pub fn set_action(&mut self, value: Action)
Sets action
to the provided enum value.
Trait Implementations§
source§impl Message for RamOp
impl Message for RamOp
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.impl StructuralPartialEq for RamOp
Auto Trait Implementations§
impl Freeze for RamOp
impl RefUnwindSafe for RamOp
impl Send for RamOp
impl Sync for RamOp
impl Unpin for RamOp
impl UnwindSafe for RamOp
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)