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: DigestIdentifier
The identifier of the subject.
governance_id: DigestIdentifier
The identifier of the governance contract associated with the subject.
sn: u64
The current sequence number of the subject.
public_key: KeyIdentifier
The identifier of the public key of the subject owner.
namespace: String
The namespace of the subject.
name: String
The name of the subject.
schema_id: String
The identifier of the schema used to validate the subject.
owner: KeyIdentifier
The identifier of the public key of the subject owner.
creator: KeyIdentifier
The identifier of the public key of the subject creator.
properties: ValueWrapper
The current status of the subject.
active: bool
Indicates 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