pub struct CloudAgentPython {
pub endpoint: String,
pub api_key: Option<String>,
pub auth_token: Option<String>,
pub version: CloudAgentPythonVersion,
}
Expand description
Cloudagent Python Agent
Fields§
§endpoint: String
base url of the cloudagent
api_key: Option<String>
admin Api key for the cloudagent
auth_token: Option<String>
Authorization token for a multi tenancy agent
version: CloudAgentPythonVersion
Agent version
Implementations§
Source§impl CloudAgentPython
Call logic for http calls
impl CloudAgentPython
Call logic for http calls
Sourcepub async fn get<T: DeserializeOwned + Debug>(
&self,
url: Url,
query: Option<Vec<(&str, String)>>,
) -> Result<T>
pub async fn get<T: DeserializeOwned + Debug>( &self, url: Url, query: Option<Vec<(&str, String)>>, ) -> Result<T>
Sourcepub async fn patch<T: DeserializeOwned + Debug>(
&self,
url: Url,
query: Option<Vec<(&str, String)>>,
) -> Result<T>
pub async fn patch<T: DeserializeOwned + Debug>( &self, url: Url, query: Option<Vec<(&str, String)>>, ) -> Result<T>
Sourcepub async fn post<T: DeserializeOwned + Debug>(
&self,
url: Url,
query: Option<Vec<(&str, String)>>,
body: Option<Value>,
) -> Result<T>
pub async fn post<T: DeserializeOwned + Debug>( &self, url: Url, query: Option<Vec<(&str, String)>>, body: Option<Value>, ) -> Result<T>
Sourcepub async fn send<T: DeserializeOwned + Debug>(
&self,
client: RequestBuilder,
) -> Result<T>
pub async fn send<T: DeserializeOwned + Debug>( &self, client: RequestBuilder, ) -> Result<T>
Trait Implementations§
Source§impl BasicMessageModule for CloudAgentPython
impl BasicMessageModule for CloudAgentPython
Source§fn send_message<'life0, 'async_trait>(
&'life0 self,
options: SendBasicMessageOptions,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_message<'life0, 'async_trait>(
&'life0 self,
options: SendBasicMessageOptions,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a basic message to another agent via the connection id
Source§impl ConnectionModule for CloudAgentPython
impl ConnectionModule for CloudAgentPython
Source§fn get_all<'life0, 'async_trait>(
&'life0 self,
options: ConnectionGetAllOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<Connection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all<'life0, 'async_trait>(
&'life0 self,
options: ConnectionGetAllOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<Connection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets all the connections
Source§fn get_by_id<'life0, 'async_trait>(
&'life0 self,
id: String,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_by_id<'life0, 'async_trait>(
&'life0 self,
id: String,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a connection by id
Source§fn create_invitation<'life0, 'async_trait>(
&'life0 self,
options: ConnectionCreateInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Invitation>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_invitation<'life0, 'async_trait>(
&'life0 self,
options: ConnectionCreateInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Invitation>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create an invitation
Source§fn receive_invitation<'life0, 'async_trait>(
&'life0 self,
invitation: ConnectionReceiveInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive_invitation<'life0, 'async_trait>(
&'life0 self,
invitation: ConnectionReceiveInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive and accept a connection
Source§impl CredentialDefinitionModule for CloudAgentPython
impl CredentialDefinitionModule for CloudAgentPython
Source§fn create<'life0, 'async_trait>(
&'life0 self,
options: CredentialDefinitionCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<CredentialDefinitionCreateResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
options: CredentialDefinitionCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<CredentialDefinitionCreateResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Register a credential definition on the ledger
Source§impl CredentialModule for CloudAgentPython
impl CredentialModule for CloudAgentPython
Source§fn send_offer<'life0, 'async_trait>(
&'life0 self,
options: CredentialOfferOptions,
) -> Pin<Box<dyn Future<Output = Result<CredentialOfferResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_offer<'life0, 'async_trait>(
&'life0 self,
options: CredentialOfferOptions,
) -> Pin<Box<dyn Future<Output = Result<CredentialOfferResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a credential offer to the connection id supplied in the options
Source§impl Debug for CloudAgentPython
impl Debug for CloudAgentPython
Source§impl FeatureModule for CloudAgentPython
impl FeatureModule for CloudAgentPython
Source§fn discover_features<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DiscoverFeaturesResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn discover_features<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DiscoverFeaturesResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Requests all the features from the cloudagent
Source§impl MultitenancyModule for CloudAgentPython
impl MultitenancyModule for CloudAgentPython
Source§impl OobModule for CloudAgentPython
impl OobModule for CloudAgentPython
Source§fn create_invitation<'life0, 'async_trait>(
&'life0 self,
options: OobConnectionCreateInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<OobConnectionCreateInvitationResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_invitation<'life0, 'async_trait>(
&'life0 self,
options: OobConnectionCreateInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<OobConnectionCreateInvitationResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create an oob invitation
Source§fn receive_invitation<'life0, 'async_trait>(
&'life0 self,
invitation: OobConnectionReceiveInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<OobConnection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive_invitation<'life0, 'async_trait>(
&'life0 self,
invitation: OobConnectionReceiveInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<OobConnection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive and accept an oob connection
Source§impl ProofModule for CloudAgentPython
impl ProofModule for CloudAgentPython
Source§fn send_request<'life0, 'async_trait>(
&'life0 self,
options: ProofRequestOptions,
) -> Pin<Box<dyn Future<Output = Result<ProofRequestResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_request<'life0, 'async_trait>(
&'life0 self,
options: ProofRequestOptions,
) -> Pin<Box<dyn Future<Output = Result<ProofRequestResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a proof request via the connection id to another agent
Source§impl SchemaModule for CloudAgentPython
impl SchemaModule for CloudAgentPython
Source§fn create<'life0, 'async_trait>(
&'life0 self,
options: SchemaCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<Schema>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
options: SchemaCreateOptions,
) -> Pin<Box<dyn Future<Output = Result<Schema>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a schema on the ledger
Source§impl WalletModule for CloudAgentPython
impl WalletModule for CloudAgentPython
Source§fn get_wallet_dids<'life0, 'async_trait>(
&'life0 self,
options: Did,
) -> Pin<Box<dyn Future<Output = Result<DidList>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_wallet_dids<'life0, 'async_trait>(
&'life0 self,
options: Did,
) -> Pin<Box<dyn Future<Output = Result<DidList>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query a wallet for DIDs
Source§fn create_local_did<'life0, 'async_trait>(
&'life0 self,
options: CreateLocalDidOptions,
) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_local_did<'life0, 'async_trait>(
&'life0 self,
options: CreateLocalDidOptions,
) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a local DID
Source§fn rotate_keypair<'life0, 'async_trait>(
&'life0 self,
did: String,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rotate_keypair<'life0, 'async_trait>(
&'life0 self,
did: String,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Rotate key pair
Source§fn fetch_public_did<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_public_did<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch public did
Source§fn assign_public_did<'life0, 'async_trait>(
&'life0 self,
did: String,
) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn assign_public_did<'life0, 'async_trait>(
&'life0 self,
did: String,
) -> Pin<Box<dyn Future<Output = Result<Did>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Assign the current public DID
Source§fn fetch_did_endpoint<'life0, 'async_trait>(
&'life0 self,
did: String,
) -> Pin<Box<dyn Future<Output = Result<DidEndpoint>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_did_endpoint<'life0, 'async_trait>(
&'life0 self,
did: String,
) -> Pin<Box<dyn Future<Output = Result<DidEndpoint>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query DID endpoint of wallet
Source§fn set_did_endpoint<'life0, 'async_trait>(
&'life0 self,
options: SetDidEndpointOptions,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_did_endpoint<'life0, 'async_trait>(
&'life0 self,
options: SetDidEndpointOptions,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set DID endpoint of wallet
Auto Trait Implementations§
impl Freeze for CloudAgentPython
impl RefUnwindSafe for CloudAgentPython
impl Send for CloudAgentPython
impl Sync for CloudAgentPython
impl Unpin for CloudAgentPython
impl UnwindSafe for CloudAgentPython
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.