pub struct ActivityResult<T> {
pub result: T,
pub activity_id: String,
pub status: ActivityStatus,
pub app_proofs: Vec<AppProof>,
}Expand description
Result of an activity request, containing both the typed result and activity metadata.
All activity methods return this wrapper, which provides access to:
- The typed result specific to each activity (e.g.,
CreateWalletResult) - The activity ID
- The activity status
- App proofs (if
with_app_proofs()was called on the client)
§Example
ⓘ
let client = TurnkeyClient::builder()
.api_key(api_key)
.build()?
.with_app_proofs();
let activity_result = client
.create_wallet(org_id, timestamp, params)
.await?;
// Access the typed result
println!("Wallet ID: {}", activity_result.result.wallet_id);
// Access activity metadata
println!("Activity ID: {}", activity_result.activity_id);
// Access app proofs for verification
for app_proof in &activity_result.app_proofs {
verify(&app_proof, &boot_proof)?;
}Fields§
§result: TThe typed result specific to this activity (e.g., CreateWalletResult, SignTransactionResult)
activity_id: StringThe unique identifier for this activity
status: ActivityStatusThe status of the activity
app_proofs: Vec<AppProof>Proofs that can be used to verify the activity was performed in a secure Turnkey enclave.
Trait Implementations§
Source§impl<T: Clone> Clone for ActivityResult<T>
impl<T: Clone> Clone for ActivityResult<T>
Source§fn clone(&self) -> ActivityResult<T>
fn clone(&self) -> ActivityResult<T>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<T> Freeze for ActivityResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ActivityResult<T>where
T: RefUnwindSafe,
impl<T> Send for ActivityResult<T>where
T: Send,
impl<T> Sync for ActivityResult<T>where
T: Sync,
impl<T> Unpin for ActivityResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for ActivityResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ActivityResult<T>where
T: UnwindSafe,
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