pub struct Inscription {Show 14 fields
pub name: String,
pub sequence: i64,
pub height: i64,
pub name_height: i64,
pub previous_hash: Vec<u8>,
pub name_hash: Vec<u8>,
pub service_hash: Vec<u8>,
pub protocol_hash: Vec<u8>,
pub block_hash: Vec<u8>,
pub block_height: i64,
pub txid: Vec<u8>,
pub vin: i8,
pub data: Vec<u8>,
pub _fields: Vec<String>,
}Fields§
§name: String§sequence: i64§height: i64§name_height: i64§previous_hash: Vec<u8>§name_hash: Vec<u8>§service_hash: Vec<u8>§protocol_hash: Vec<u8>§block_hash: Vec<u8>§block_height: i64§txid: Vec<u8>§vin: i8§data: Vec<u8>§_fields: Vec<String>Implementations§
Source§impl Inscription
impl Inscription
pub fn fields() -> Vec<String>
pub fn fill(&mut self, cols: &ColumnsMap)
pub fn to(&self) -> ColumnsMap
Source§impl Inscription
impl Inscription
pub fn with_pk(name: String, sequence: i64) -> Self
pub fn from_index(value: &Inscription) -> Result<Self>
pub fn to_index(&self) -> Result<Inscription>
pub fn to_checkpoint(&self, hash: Bytes32) -> Result<Checkpoint>
pub fn select_fields( select_fields: Vec<String>, with_pk: bool, ) -> Result<Vec<String>>
pub async fn get_one( &mut self, db: &ScyllaDB, select_fields: Vec<String>, ) -> Result<()>
pub async fn save_checkpoint( db: &ScyllaDB, name_states: &Vec<NameState>, service_states: &Vec<ServiceState>, protocol_states: &Vec<ServiceProtocol>, inscriptions: &Vec<Inscription>, ) -> Result<()>
pub async fn get_by_height( db: &ScyllaDB, height: i64, select_fields: Vec<String>, ) -> Result<Self>
pub async fn list_by_block_height( db: &ScyllaDB, height: i64, select_fields: Vec<String>, ) -> Result<Vec<Self>>
pub async fn list_by_name( db: &ScyllaDB, name: &String, select_fields: Vec<String>, page_size: u16, page_token: Option<i64>, ) -> Result<Vec<Self>>
Trait Implementations§
Source§impl Clone for Inscription
impl Clone for Inscription
Source§fn clone(&self) -> Inscription
fn clone(&self) -> Inscription
Returns a copy 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 Inscription
impl Debug for Inscription
Source§impl Default for Inscription
impl Default for Inscription
Source§fn default() -> Inscription
fn default() -> Inscription
Returns the “default value” for a type. Read more
Source§impl PartialEq for Inscription
impl PartialEq for Inscription
impl StructuralPartialEq for Inscription
Auto Trait Implementations§
impl Freeze for Inscription
impl RefUnwindSafe for Inscription
impl Send for Inscription
impl Sync for Inscription
impl Unpin for Inscription
impl UnwindSafe for Inscription
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<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