Struct taple_core::SubjectData
source · pub struct SubjectData {
pub subject_id: DigestIdentifier,
pub governance_id: DigestIdentifier,
pub sn: u64,
pub public_key: KeyIdentifier,
pub namespace: String,
pub name: String,
pub schema_id: String,
pub owner: KeyIdentifier,
pub creator: KeyIdentifier,
pub properties: ValueWrapper,
pub active: bool,
}Expand description
A struct representing the data associated with a TAPLE subject.
Fields§
§subject_id: DigestIdentifierThe identifier of the subject.
governance_id: DigestIdentifierThe identifier of the governance contract associated with the subject.
sn: u64The current sequence number of the subject.
public_key: KeyIdentifierThe identifier of the public key of the subject owner.
namespace: StringThe namespace of the subject.
name: StringThe name of the subject.
schema_id: StringThe identifier of the schema used to validate the subject.
owner: KeyIdentifierThe identifier of the public key of the subject owner.
creator: KeyIdentifierThe identifier of the public key of the subject creator.
properties: ValueWrapperThe current status of the subject.
active: boolIndicates whether the subject is active or not.
Trait Implementations§
source§impl Clone for SubjectData
impl Clone for SubjectData
source§fn clone(&self) -> SubjectData
fn clone(&self) -> SubjectData
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 SubjectData
impl Debug for SubjectData
source§impl<'de> Deserialize<'de> for SubjectData
impl<'de> Deserialize<'de> for SubjectData
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
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§
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