pub struct OnChainProcessor {
pub name: String,
pub event_source_type: EventSourceType,
pub filter: String,
pub write_enabled: bool,
pub module_cid: [u8; 32],
pub owner_pubkey: [u8; 32],
pub write_pubkey: Option<[u8; 32]>,
}Expand description
Add an event source for a route
Fields§
§name: String§event_source_type: EventSourceType§filter: String§write_enabled: bool§module_cid: [u8; 32]§owner_pubkey: [u8; 32]§write_pubkey: Option<[u8; 32]>Trait Implementations§
Source§impl BorshDeserialize for OnChainProcessorwhere
String: BorshDeserialize,
EventSourceType: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
Option<[u8; 32]>: BorshDeserialize,
impl BorshDeserialize for OnChainProcessorwhere
String: BorshDeserialize,
EventSourceType: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
Option<[u8; 32]>: 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 OnChainProcessorwhere
String: BorshSerialize,
EventSourceType: BorshSerialize,
bool: BorshSerialize,
[u8; 32]: BorshSerialize,
Option<[u8; 32]>: BorshSerialize,
impl BorshSerialize for OnChainProcessorwhere
String: BorshSerialize,
EventSourceType: BorshSerialize,
bool: BorshSerialize,
[u8; 32]: BorshSerialize,
Option<[u8; 32]>: BorshSerialize,
Source§impl Clone for OnChainProcessor
impl Clone for OnChainProcessor
Source§fn clone(&self) -> OnChainProcessor
fn clone(&self) -> OnChainProcessor
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 OnChainProcessor
impl Debug for OnChainProcessor
Source§impl<'de> Deserialize<'de> for OnChainProcessor
impl<'de> Deserialize<'de> for OnChainProcessor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OnChainProcessor
impl PartialEq for OnChainProcessor
Source§impl Serialize for OnChainProcessor
impl Serialize for OnChainProcessor
impl Eq for OnChainProcessor
impl StructuralPartialEq for OnChainProcessor
Auto Trait Implementations§
impl Freeze for OnChainProcessor
impl RefUnwindSafe for OnChainProcessor
impl Send for OnChainProcessor
impl Sync for OnChainProcessor
impl Unpin for OnChainProcessor
impl UnwindSafe for OnChainProcessor
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