Struct air_interpreter_interface::RunParameters
source · pub struct RunParameters {
pub init_peer_id: String,
pub current_peer_id: String,
pub timestamp: u64,
pub ttl: u32,
pub key_format: u8,
pub secret_key_bytes: Vec<u8>,
pub particle_id: String,
pub air_size_limit: u64,
pub particle_size_limit: u64,
pub call_result_size_limit: u64,
pub hard_limit_enabled: bool,
}
Expand description
Parameters that a host side should pass to an interpreter and that necessary for execution.
Fields§
§init_peer_id: String
Peer id of a peer that start this particle.
current_peer_id: String
Peer id of a current peer.
timestamp: u64
Unix timestamp from a particle in milliseconds. It represents time when this particle was sent from the init peer id.
ttl: u32
TTL set by init peer id in milliseconds.
key_format: u8
A key format.
This value is the result of fluence_keypair::KeyType::into
.
secret_key_bytes: Vec<u8>
A secret key material.
The value is the result fluence_keypair::KeyPair::secret
, for compatibility
with JS client who can only serialize to secret key, not to keypair.
particle_id: String
Unique particle ID.
air_size_limit: u64
The AIR script size limit.
particle_size_limit: u64
The particle data size limit.
call_result_size_limit: u64
This is the limit for the size of service call result.
hard_limit_enabled: bool
This knob controls hard RAM limits behavior for AVMRunner.
Implementations§
source§impl RunParameters
impl RunParameters
pub fn new( init_peer_id: String, current_peer_id: String, timestamp: u64, ttl: u32, key_format: u8, secret_key_bytes: Vec<u8>, particle_id: String, air_size_limit: u64, particle_size_limit: u64, call_result_size_limit: u64, hard_limit_enabled: bool ) -> Self
pub fn into_ivalue(self) -> IValue
Trait Implementations§
source§impl Clone for RunParameters
impl Clone for RunParameters
source§fn clone(&self) -> RunParameters
fn clone(&self) -> RunParameters
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 RunParameters
impl Debug for RunParameters
source§impl<'de> Deserialize<'de> for RunParameters
impl<'de> Deserialize<'de> for RunParameters
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for RunParameters
impl PartialEq for RunParameters
source§fn eq(&self, other: &RunParameters) -> bool
fn eq(&self, other: &RunParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RunParameters
impl Serialize for RunParameters
impl Eq for RunParameters
impl StructuralPartialEq for RunParameters
Auto Trait Implementations§
impl RefUnwindSafe for RunParameters
impl Send for RunParameters
impl Sync for RunParameters
impl Unpin for RunParameters
impl UnwindSafe for RunParameters
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