Struct pchain_types::blockchain::Log
source · pub struct Log {
pub topic: Vec<u8>,
pub value: Vec<u8>,
}Expand description
Log are messages produced by smart contract executions that are persisted on the blockchain
in a cryptographically-provable way. Log produced by transactions that call smart contracts
are stored in the logs field of a Block in the order in which they are emitted.
Fields§
§topic: Vec<u8>Key of this event. It is created from contract execution.
value: Vec<u8>Value of this event. It is created from contract execution.
Trait Implementations§
source§impl BorshDeserialize for Logwhere
Vec<u8>: BorshDeserialize,
impl BorshDeserialize for Logwhere Vec<u8>: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for Logwhere
Vec<u8>: BorshSerialize,
impl BorshSerialize for Logwhere Vec<u8>: BorshSerialize,
source§impl Deserializable for Log
impl Deserializable for Log
impl Eq for Log
impl StructuralEq for Log
impl StructuralPartialEq for Log
Auto Trait Implementations§
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnwindSafe for Log
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