Struct taple_core::request::FactRequest
source · pub struct FactRequest {
pub subject_id: DigestIdentifier,
pub payload: ValueWrapper,
}
Expand description
A struct representing a request to add a fact to a subject.
Fields§
§subject_id: DigestIdentifier
The identifier of the subject to which the fact will be added.
payload: ValueWrapper
The payload of the fact to be added.
Trait Implementations§
source§impl BorshDeserialize for FactRequestwhere
DigestIdentifier: BorshDeserialize,
ValueWrapper: BorshDeserialize,
impl BorshDeserialize for FactRequestwhere DigestIdentifier: BorshDeserialize, ValueWrapper: 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 FactRequestwhere
DigestIdentifier: BorshSerialize,
ValueWrapper: BorshSerialize,
impl BorshSerialize for FactRequestwhere DigestIdentifier: BorshSerialize, ValueWrapper: BorshSerialize,
source§impl Clone for FactRequest
impl Clone for FactRequest
source§fn clone(&self) -> FactRequest
fn clone(&self) -> FactRequest
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 FactRequest
impl Debug for FactRequest
source§impl<'de> Deserialize<'de> for FactRequest
impl<'de> Deserialize<'de> for FactRequest
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<FactRequest> for FactRequest
impl PartialEq<FactRequest> for FactRequest
source§fn eq(&self, other: &FactRequest) -> bool
fn eq(&self, other: &FactRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FactRequest
impl Serialize for FactRequest
impl Eq for FactRequest
impl StructuralEq for FactRequest
impl StructuralPartialEq for FactRequest
Auto Trait Implementations§
impl RefUnwindSafe for FactRequest
impl Send for FactRequest
impl Sync for FactRequest
impl Unpin for FactRequest
impl UnwindSafe for FactRequest
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.