pub struct EntityProfile {Show 13 fields
pub subject_id: SubjectId,
pub org_type: OrgType,
pub name_commitment: [u8; 32],
pub jurisdiction: Option<String>,
pub registration_commitment: Option<[u8; 32]>,
pub controller_model: ControllerModel,
pub controllers: Vec<Address>,
pub multisig_threshold: Option<u8>,
pub services: Vec<EntityService>,
pub metadata_hash: [u8; 32],
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub status: EntityStatus,
}Expand description
Entity Identity Profile (SRC-831)
Fields§
§subject_id: SubjectIdSubject ID (SRC-801)
org_type: OrgTypeOrganization type
name_commitment: [u8; 32]Legal name commitment (BLAKE3 hash, not actual name)
jurisdiction: Option<String>Jurisdiction of incorporation (ISO 3166-1/2)
registration_commitment: Option<[u8; 32]>Registration number commitment (if applicable)
controller_model: ControllerModelController model hint
controllers: Vec<Address>Controller address(es)
multisig_threshold: Option<u8>Multi-sig threshold (if applicable)
services: Vec<EntityService>Service endpoints
metadata_hash: [u8; 32]Profile metadata hash
created_at: TimestampCreated timestamp
updated_at: TimestampUpdated timestamp
status: EntityStatusStatus
Implementations§
Source§impl EntityProfile
impl EntityProfile
Trait Implementations§
Source§impl Clone for EntityProfile
impl Clone for EntityProfile
Source§fn clone(&self) -> EntityProfile
fn clone(&self) -> EntityProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EntityProfile
impl Debug for EntityProfile
Source§impl<'de> Deserialize<'de> for EntityProfile
impl<'de> Deserialize<'de> for EntityProfile
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 for EntityProfile
impl PartialEq for EntityProfile
Source§fn eq(&self, other: &EntityProfile) -> bool
fn eq(&self, other: &EntityProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EntityProfile
impl Serialize for EntityProfile
impl Eq for EntityProfile
impl StructuralPartialEq for EntityProfile
Auto Trait Implementations§
impl Freeze for EntityProfile
impl RefUnwindSafe for EntityProfile
impl Send for EntityProfile
impl Sync for EntityProfile
impl Unpin for EntityProfile
impl UnsafeUnpin for EntityProfile
impl UnwindSafe for EntityProfile
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