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