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