pub struct DataProvider {
data_source: MockData,
next_slot: usize,
slots: [Vec<u8>; 256],
pub _rounding_mode: RippledRoundingMode,
}Fields§
§data_source: MockData§next_slot: usize§slots: [Vec<u8>; 256]§_rounding_mode: RippledRoundingModeImplementations§
Source§impl DataProvider
impl DataProvider
pub fn new(data_source: MockData) -> Self
pub fn slot_set(&mut self, keylet: Vec<u8>, slot: usize) -> i32
pub fn slot_get(&self, slot: usize) -> Option<&Vec<u8>>
pub fn get_field_value( &self, source: DataSource, idx_fields: Vec<i32>, buf_cap: usize, ) -> (i32, Vec<u8>)
pub fn get_array_len(&self, source: DataSource, idx_fields: Vec<i32>) -> i32
pub fn get_ledger_sqn(&self) -> i32
pub fn get_parent_ledger_time(&self) -> i32
pub fn get_parent_ledger_hash(&self, buf_cap: usize) -> (i32, Vec<u8>)
pub fn get_nft_uri( &self, nft_id: &Vec<u8>, account_id: &Vec<u8>, buf_cap: usize, ) -> (i32, Vec<u8>)
pub fn set_current_ledger_obj_data(&mut self, data: Vec<u8>)
fn fill_buf( field_result: Option<&Value>, buf_cap: usize, decodable: Decodable, ) -> (i32, Vec<u8>)
pub fn as_ptr(&mut self) -> *mut c_void
Auto Trait Implementations§
impl Freeze for DataProvider
impl RefUnwindSafe for DataProvider
impl Send for DataProvider
impl Sync for DataProvider
impl Unpin for DataProvider
impl UnwindSafe for DataProvider
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