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 EventRequest
impl BorshDeserialize for EventRequest
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 EventRequest
impl BorshSerialize for EventRequest
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 EventRequest
impl EnumExt for EventRequest
Source§impl PartialEq for EventRequest
impl PartialEq for EventRequest
Source§impl Serialize for EventRequest
impl Serialize for EventRequest
impl Eq for EventRequest
impl StructuralPartialEq for EventRequest
Auto Trait Implementations§
impl Freeze for EventRequest
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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