Struct tea_sdk::vmh::message::structs_proto::p2p::ErrandExecutionRequest
pub struct ErrandExecutionRequest {Show 15 fields
pub delegator_ephemeral_id: Vec<u8>,
pub errand_id: Vec<u8>,
pub signature: Vec<u8>,
pub expiry_time: u64,
pub proof_of_delegation: Vec<u8>,
pub client_account_id: String,
pub payment: u32,
pub delegator_tea_id: Vec<u8>,
pub errand_json_cid: String,
pub delegator_percentage: u32,
pub delegator_payment_account: String,
pub code: Option<Code>,
pub data: Option<Data>,
pub data_signature: Option<DataSignature>,
pub key3: Option<Key3>,
}
Fields§
§delegator_ephemeral_id: Vec<u8>
The Ehpemeral Id of the delegator
errand_id: Vec<u8>
this is id of the errand
signature: Vec<u8>
The Ed25519 sig for concat bytes: executorEphemeralId + expiryTime + errandId + proofOfDelegation
expiry_time: u64
this is expiration layer1 height about this request
proof_of_delegation: Vec<u8>
this is proof of delegation
client_account_id: String
this is account id of the client
payment: u32
this is payment amount for this errand
delegator_tea_id: Vec<u8>
tea id of the delegator
errand_json_cid: String
this is cid of the errand json
delegator_percentage: u32
this is percentage of distribution for delegator
delegator_payment_account: String
this is payment account about delegator
code: Option<Code>
§data: Option<Data>
§data_signature: Option<DataSignature>
§key3: Option<Key3>
Trait Implementations§
§impl Clone for ErrandExecutionRequest
impl Clone for ErrandExecutionRequest
§fn clone(&self) -> ErrandExecutionRequest
fn clone(&self) -> ErrandExecutionRequest
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 more§impl Debug for ErrandExecutionRequest
impl Debug for ErrandExecutionRequest
§impl Default for ErrandExecutionRequest
impl Default for ErrandExecutionRequest
§fn default() -> ErrandExecutionRequest
fn default() -> ErrandExecutionRequest
Returns the “default value” for a type. Read more
§impl Message for ErrandExecutionRequest
impl Message for ErrandExecutionRequest
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
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,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.§impl PartialEq for ErrandExecutionRequest
impl PartialEq for ErrandExecutionRequest
§fn eq(&self, other: &ErrandExecutionRequest) -> bool
fn eq(&self, other: &ErrandExecutionRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ErrandExecutionRequest
Auto Trait Implementations§
impl RefUnwindSafe for ErrandExecutionRequest
impl Send for ErrandExecutionRequest
impl Sync for ErrandExecutionRequest
impl Unpin for ErrandExecutionRequest
impl UnwindSafe for ErrandExecutionRequest
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