pub struct GovernClient { /* private fields */ }Expand description
ICEBOX Governance SDK client. Wraps any action in a GEE with one call.
Implementations§
Source§impl GovernClient
impl GovernClient
pub fn new(base_url: &str) -> Result<Self, ClientError>
pub async fn govern( &self, action: GovernAction, ) -> Result<GovernResult, ClientError>
pub async fn record( &self, action: GovernAction, outcome: ActionOutcome, ) -> Result<RecordResult, ClientError>
Auto Trait Implementations§
impl !RefUnwindSafe for GovernClient
impl !UnwindSafe for GovernClient
impl Freeze for GovernClient
impl Send for GovernClient
impl Sync for GovernClient
impl Unpin for GovernClient
impl UnsafeUnpin for GovernClient
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