Enum taple_core::request::EventRequest
source · pub enum EventRequest {
Create(StartRequest),
Fact(FactRequest),
Transfer(TransferRequest),
EOL(EOLRequest),
}
Expand description
An enum representing a TAPLE event request.
Variants§
Create(StartRequest)
A request to create a new subject.
Fact(FactRequest)
A request to add a fact to a subject.
Transfer(TransferRequest)
A request to transfer ownership of a subject.
EOL(EOLRequest)
A request to mark a subject as end-of-life.
Implementations§
source§impl EventRequest
impl EventRequest
pub fn requires_eval_appr(&self) -> bool
Trait Implementations§
source§impl BorshDeserialize for EventRequestwhere
StartRequest: BorshDeserialize,
FactRequest: BorshDeserialize,
TransferRequest: BorshDeserialize,
EOLRequest: BorshDeserialize,
impl BorshDeserialize for EventRequestwhere StartRequest: BorshDeserialize, FactRequest: BorshDeserialize, TransferRequest: BorshDeserialize, EOLRequest: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§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.
§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 EventRequestwhere
StartRequest: BorshSerialize,
FactRequest: BorshSerialize,
TransferRequest: BorshSerialize,
EOLRequest: BorshSerialize,
impl BorshSerialize for EventRequestwhere StartRequest: BorshSerialize, FactRequest: BorshSerialize, TransferRequest: BorshSerialize, EOLRequest: BorshSerialize,
source§impl Clone for EventRequest
impl Clone for EventRequest
source§fn clone(&self) -> EventRequest
fn clone(&self) -> EventRequest
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 moresource§impl Debug for EventRequest
impl Debug for EventRequest
source§impl<'de> Deserialize<'de> for EventRequest
impl<'de> Deserialize<'de> for EventRequest
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 EnumExt for EventRequestwhere
StartRequest: BorshDeserialize,
FactRequest: BorshDeserialize,
TransferRequest: BorshDeserialize,
EOLRequest: BorshDeserialize,
impl EnumExt for EventRequestwhere StartRequest: BorshDeserialize, FactRequest: BorshDeserialize, TransferRequest: BorshDeserialize, EOLRequest: BorshDeserialize,
source§impl PartialEq<EventRequest> for EventRequest
impl PartialEq<EventRequest> for EventRequest
source§fn eq(&self, other: &EventRequest) -> bool
fn eq(&self, other: &EventRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EventRequest
impl Serialize for EventRequest
impl Eq for EventRequest
impl StructuralEq for EventRequest
impl StructuralPartialEq for EventRequest
Auto Trait Implementations§
impl RefUnwindSafe for EventRequest
impl Send for EventRequest
impl Sync for EventRequest
impl Unpin for EventRequest
impl UnwindSafe for EventRequest
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.