pub struct RawTransaction {
pub chain_id: Option<Hash>,
pub nonce: Option<Hash>,
pub timeout: u64,
pub cycles_price: u64,
pub cycles_limit: u64,
pub request: Option<TransactionRequest>,
}Fields§
§chain_id: Option<Hash>§nonce: Option<Hash>§timeout: u64§cycles_price: u64§cycles_limit: u64§request: Option<TransactionRequest>Trait Implementations§
Source§impl Clone for RawTransaction
impl Clone for RawTransaction
Source§fn clone(&self) -> RawTransaction
fn clone(&self) -> RawTransaction
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 moreSource§impl Debug for RawTransaction
impl Debug for RawTransaction
Source§impl Default for RawTransaction
impl Default for RawTransaction
Source§fn default() -> RawTransaction
fn default() -> RawTransaction
Returns the “default value” for a type. Read more
Source§impl From<RawTransaction> for RawTransaction
impl From<RawTransaction> for RawTransaction
Source§fn from(raw: RawTransaction) -> RawTransaction
fn from(raw: RawTransaction) -> RawTransaction
Converts to this type from the input type.
Source§impl Message for RawTransaction
impl Message for RawTransaction
Source§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>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
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>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl TryFrom<RawTransaction> for RawTransaction
impl TryFrom<RawTransaction> for RawTransaction
Source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Source§fn try_from(raw: RawTransaction) -> Result<RawTransaction, Self::Error>
fn try_from(raw: RawTransaction) -> Result<RawTransaction, Self::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RawTransaction
impl RefUnwindSafe for RawTransaction
impl Send for RawTransaction
impl Sync for RawTransaction
impl Unpin for RawTransaction
impl UnsafeUnpin for RawTransaction
impl UnwindSafe for RawTransaction
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