Struct substreams_antelope_core::pb::antelope::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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.