pub struct Platform { /* private fields */ }Implementations§
Source§impl Platform
impl Platform
pub fn new(options: PlatformOptions) -> Result<Arc<Self>, PlatformError>
pub fn discovery(&self) -> PlatformResponse<DiscoveryDocument>
pub async fn did_document( &self, agent_did_id: &str, ) -> Result<PlatformResponse<DidDocument>, PlatformError>
pub async fn get_identity( &self, agent_identity_id: &str, context: &RequestContext, ) -> Result<PlatformResponse<AgentIdentity>, PlatformError>
pub async fn list( &self, query: IdentityListQuery, context: &RequestContext, ) -> Result<PlatformResponse<AgentIdentityListResponse>, PlatformError>
pub async fn provision( self: &Arc<Self>, request: ProvisionRequest, context: RequestContext, ) -> Result<PlatformResponse<AgentIdentity>, PlatformError>
pub async fn sign( self: &Arc<Self>, agent_identity_id: &str, request: SignRequest, context: RequestContext, ) -> Result<PlatformResponse<SignResponse>, PlatformError>
pub async fn update_identity( &self, agent_identity_id: &str, request: LifecycleRequest, context: &RequestContext, ) -> Result<PlatformResponse<AgentIdentity>, PlatformError>
pub async fn verify( self: &Arc<Self>, request: VerificationRequest, context: RequestContext, ) -> Result<PlatformResponse<VerificationResponse>, PlatformError>
Auto Trait Implementations§
impl !RefUnwindSafe for Platform
impl !UnwindSafe for Platform
impl Freeze for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnsafeUnpin for Platform
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