pub struct RelTxAction {
pub cid: ContractId,
pub action_idx: u64,
}Expand description
Relationship between an action and a transaction
This model is saved behind the key of a tx-identifier, to be able to relate a transaction back to the action.
Fields§
§cid: ContractIdContract-ID of the action’s contract
action_idx: u64Index (number) of the action inside the contract
Implementations§
Source§impl RelTxAction
impl RelTxAction
Sourcepub fn into_bytes(self) -> [u8; 24]
pub fn into_bytes(self) -> [u8; 24]
Converts the RelTxAction into bytes
Sourcepub fn from_bytes(bytes: &[u8]) -> Self
pub fn from_bytes(bytes: &[u8]) -> Self
Parses the relation from bytes
§Panics
This function panics, if the byte-slice is not an encoded RelTxAction object.
Auto Trait Implementations§
impl Freeze for RelTxAction
impl RefUnwindSafe for RelTxAction
impl Send for RelTxAction
impl Sync for RelTxAction
impl Unpin for RelTxAction
impl UnsafeUnpin for RelTxAction
impl UnwindSafe for RelTxAction
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more