pub struct ServiceContextParams {
pub cycles_limit: u64,
pub cycles_price: u64,
pub cycles_used: Rc<RefCell<u64>>,
pub caller: Address,
pub epoch_id: u64,
pub service_name: String,
pub service_method: String,
pub service_payload: String,
pub timestamp: u64,
pub events: Rc<RefCell<Vec<Event>>>,
}
Fields§
§cycles_limit: u64
§cycles_price: u64
§cycles_used: Rc<RefCell<u64>>
§caller: Address
§epoch_id: u64
§service_name: String
§service_method: String
§service_payload: String
§timestamp: u64
§events: Rc<RefCell<Vec<Event>>>
Trait Implementations§
Source§impl Clone for ServiceContextParams
impl Clone for ServiceContextParams
Source§fn clone(&self) -> ServiceContextParams
fn clone(&self) -> ServiceContextParams
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ServiceContextParams
impl !RefUnwindSafe for ServiceContextParams
impl !Send for ServiceContextParams
impl !Sync for ServiceContextParams
impl Unpin for ServiceContextParams
impl !UnwindSafe for ServiceContextParams
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