Struct core::SubjectData
[−]pub struct SubjectData {
pub subject_id: DigestIdentifier,
pub governance_id: DigestIdentifier,
pub sn: u64,
pub public_key: KeyIdentifier,
pub namespace: String,
pub schema_id: String,
pub owner: KeyIdentifier,
pub properties: String,
}
Expand description
TAPLE protocol subject data structure
Fields
subject_id: DigestIdentifier
Subject identifier
governance_id: DigestIdentifier
Governance identifier
sn: u64
Current sequence number of the subject
public_key: KeyIdentifier
Public key of the subject
namespace: String
schema_id: String
Identifier of the schema used by the subject and defined in associated governance
owner: KeyIdentifier
Subject owner identifier
properties: String
Current status of the subject
Trait Implementations
impl BorshDeserialize for SubjectDatawhere
DigestIdentifier: BorshDeserialize,
u64: BorshDeserialize,
KeyIdentifier: BorshDeserialize,
String: BorshDeserialize,
impl BorshDeserialize for SubjectDatawhere
DigestIdentifier: BorshDeserialize,
u64: BorshDeserialize,
KeyIdentifier: BorshDeserialize,
String: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<SubjectData, Error>
fn deserialize(buf: &mut &[u8]) -> Result<SubjectData, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
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.
impl BorshSerialize for SubjectDatawhere
DigestIdentifier: BorshSerialize,
u64: BorshSerialize,
KeyIdentifier: BorshSerialize,
String: BorshSerialize,
impl BorshSerialize for SubjectDatawhere
DigestIdentifier: BorshSerialize,
u64: BorshSerialize,
KeyIdentifier: BorshSerialize,
String: BorshSerialize,
impl Clone for SubjectData
impl Clone for SubjectData
fn clone(&self) -> SubjectData
fn clone(&self) -> SubjectData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Debug for SubjectData
impl Debug for SubjectData
impl<'de> Deserialize<'de> for SubjectData
impl<'de> Deserialize<'de> for SubjectData
fn deserialize<__D>(
__deserializer: __D
) -> Result<SubjectData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SubjectData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<SubjectData> for SubjectData
impl PartialEq<SubjectData> for SubjectData
fn eq(&self, other: &SubjectData) -> bool
fn eq(&self, other: &SubjectData) -> bool
impl Serialize for SubjectData
impl Serialize for SubjectData
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl ToSchema for SubjectData
impl ToSchema for SubjectData
impl Eq for SubjectData
impl StructuralEq for SubjectData
impl StructuralPartialEq for SubjectData
Auto Trait Implementations
impl RefUnwindSafe for SubjectData
impl Send for SubjectData
impl Sync for SubjectData
impl Unpin for SubjectData
impl UnwindSafe for SubjectData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.