pub struct MadeClient { /* private fields */ }Expand description
Cloneable reference client backed exclusively by MADE’s public gRPC API.
Implementations§
Source§impl MadeClient
impl MadeClient
pub async fn pause( &self, request: PauseCeremonyRequest, ) -> Result<CeremonyInstanceState, MadeClientError>
pub async fn resume( &self, request: ResumeCeremonyRequest, ) -> Result<CeremonyInstanceState, MadeClientError>
pub async fn cancel( &self, request: CancelCeremonyRequest, ) -> Result<CeremonyInstanceState, MadeClientError>
pub async fn enforce_deadlines( &self, ceremony_id: impl Into<String>, ) -> Result<CeremonyInstanceState, MadeClientError>
pub async fn approve( &self, request: ApproveCeremonyGuardRequest, ) -> Result<CeremonyInstanceState, MadeClientError>
Source§impl MadeClient
impl MadeClient
pub async fn export_artifact( &self, artifact_id: &str, destination: &Path, overwrite: bool, ) -> Result<(), MadeClientError>
Source§impl MadeClient
impl MadeClient
pub async fn get_artifact( &self, artifact_id: impl Into<String>, ) -> Result<ArtifactRecord, MadeClientError>
pub async fn list_artifacts( &self, cursor: Option<String>, limit: u32, ) -> Result<ListArtifactsResponse, MadeClientError>
Source§impl MadeClient
impl MadeClient
Source§impl MadeClient
impl MadeClient
Sourcepub async fn get_budget_report(
&self,
ceremony_id: impl Into<String>,
) -> Result<GetBudgetReportResponse, MadeClientError>
pub async fn get_budget_report( &self, ceremony_id: impl Into<String>, ) -> Result<GetBudgetReportResponse, MadeClientError>
Read the durable budget account shared by a ceremony tree.
Sourcepub async fn list_pending_budget_reservations(
&self,
after_reservation_id: impl Into<String>,
limit: u32,
) -> Result<ListPendingBudgetReservationsResponse, MadeClientError>
pub async fn list_pending_budget_reservations( &self, after_reservation_id: impl Into<String>, limit: u32, ) -> Result<ListPendingBudgetReservationsResponse, MadeClientError>
List unresolved reservations in stable keyset order.
Source§impl MadeClient
impl MadeClient
pub async fn get_ceremony( &self, ceremony_id: impl Into<String>, ) -> Result<CeremonyInstanceState, MadeClientError>
Sourcepub async fn list_ceremonies(
&self,
) -> Result<Vec<CeremonyInstanceState>, MadeClientError>
pub async fn list_ceremonies( &self, ) -> Result<Vec<CeremonyInstanceState>, MadeClientError>
Existing unpaged server listing kept for compatibility.
Sourcepub async fn search_ceremonies(
&self,
query: SearchCeremonyInstancesRequest,
) -> Result<CeremonySearchPage, MadeClientError>
pub async fn search_ceremonies( &self, query: SearchCeremonyInstancesRequest, ) -> Result<CeremonySearchPage, MadeClientError>
Search one bounded page. The returned cursor is opaque and bound to the request’s filters; callers must send it back unchanged.
pub async fn ceremony_tree( &self, root_id: impl Into<String>, max_nodes: usize, ) -> Result<CeremonyTree, MadeClientError>
Source§impl MadeClient
impl MadeClient
pub async fn get_execution_receipt( &self, operation_id: impl Into<String>, ) -> Result<ExecutionReceipt, MadeClientError>
pub async fn inspect_execution_recovery( &self, after: Option<String>, limit: u32, ) -> Result<InspectExecutionRecoveryResponse, MadeClientError>
Source§impl MadeClient
impl MadeClient
pub async fn connect( endpoint: impl Into<String>, ) -> Result<Self, MadeClientError>
pub async fn connect_with_config( config: ClientConfig, ) -> Result<Self, MadeClientError>
pub fn request_context(&self) -> RequestContext
Source§impl MadeClient
impl MadeClient
pub async fn watch_once( &self, checkpoint: &ProgressCheckpoint, max_events: u32, wait_timeout_ms: Option<u32>, ) -> Result<ProgressBatch, MadeClientError>
Source§impl MadeClient
impl MadeClient
pub async fn generate_report( &self, ceremony_ids: Vec<String>, title: impl Into<String>, ) -> Result<GenerateCeremonyReportResponse, MadeClientError>
pub async fn export_report( &self, ceremony_ids: Vec<String>, title: impl Into<String>, destination: &Path, ) -> Result<GenerateCeremonyReportResponse, MadeClientError>
Trait Implementations§
Source§impl Clone for MadeClient
impl Clone for MadeClient
Source§fn clone(&self) -> MadeClient
fn clone(&self) -> MadeClient
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for MadeClient
impl !UnwindSafe for MadeClient
impl Freeze for MadeClient
impl Send for MadeClient
impl Sync for MadeClient
impl Unpin for MadeClient
impl UnsafeUnpin for MadeClient
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request