PolicyEditorV2BetaApi

Trait PolicyEditorV2BetaApi 

Source
pub trait PolicyEditorV2BetaApi: Send + Sync {
    // Required methods
    fn get_active_v2_policy<'life0, 'async_trait>(
        &'life0 self,
        params: GetActiveV2PolicyParams,
    ) -> Pin<Box<dyn Future<Output = Result<PolicyAndValidationResponseV2, Error<GetActiveV2PolicyError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_v2_draft<'life0, 'async_trait>(
        &'life0 self,
        params: GetV2DraftParams,
    ) -> Pin<Box<dyn Future<Output = Result<DraftReviewAndValidationResponseV2, Error<GetV2DraftError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn publish_v2_draft<'life0, 'async_trait>(
        &'life0 self,
        params: PublishV2DraftParams,
    ) -> Pin<Box<dyn Future<Output = Result<PublishResultV2, Error<PublishV2DraftError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_v2_draft<'life0, 'async_trait>(
        &'life0 self,
        params: UpdateV2DraftParams,
    ) -> Pin<Box<dyn Future<Output = Result<DraftReviewAndValidationResponseV2, Error<UpdateV2DraftError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_active_v2_policy<'life0, 'async_trait>( &'life0 self, params: GetActiveV2PolicyParams, ) -> Pin<Box<dyn Future<Output = Result<PolicyAndValidationResponseV2, Error<GetActiveV2PolicyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /policy/active_policy

Returns the active policy and its validation for a specific policy type. Note: This endpoint is currently in beta and might be subject to changes.

Source

fn get_v2_draft<'life0, 'async_trait>( &'life0 self, params: GetV2DraftParams, ) -> Pin<Box<dyn Future<Output = Result<DraftReviewAndValidationResponseV2, Error<GetV2DraftError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /policy/draft

Returns the active draft and its validation for a specific policy type. Note: This endpoint is currently in beta and might be subject to changes.

Source

fn publish_v2_draft<'life0, 'async_trait>( &'life0 self, params: PublishV2DraftParams, ) -> Pin<Box<dyn Future<Output = Result<PublishResultV2, Error<PublishV2DraftError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

POST /policy/draft

Send publish request of certain draft ID and returns the response. Note: This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Policy Editor, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.

Source

fn update_v2_draft<'life0, 'async_trait>( &'life0 self, params: UpdateV2DraftParams, ) -> Pin<Box<dyn Future<Output = Result<DraftReviewAndValidationResponseV2, Error<UpdateV2DraftError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

PUT /policy/draft

Update the draft and return its validation for specific policy types. Note: This endpoint is currently in beta and might be subject to changes.

Implementors§