pub struct HttpAuthority { /* private fields */ }Implementations§
Source§impl HttpAuthority
impl HttpAuthority
pub fn new(keypair: Keypair, policy_hash: String) -> Self
pub fn new_with_approval_store( keypair: Keypair, policy_hash: String, approval_store: Arc<dyn ApprovalStore>, ) -> Self
pub fn new_with_approval_store_and_trusted_issuers( keypair: Keypair, policy_hash: String, approval_store: Arc<dyn ApprovalStore>, trusted_capability_issuers: Vec<PublicKey>, ) -> Self
pub fn approval_store(&self) -> Arc<dyn ApprovalStore>
pub fn evaluate( &self, input: HttpAuthorityInput<'_>, ) -> Result<HttpAuthorityEvaluation, HttpAuthorityError>
pub fn prepare( &self, input: HttpAuthorityInput<'_>, ) -> Result<PreparedHttpEvaluation, HttpAuthorityError>
pub fn sign_decision_receipt( &self, prepared: &PreparedHttpEvaluation, ) -> Result<HttpReceipt, HttpAuthorityError>
pub fn finalize_receipt( &self, prepared: &PreparedHttpEvaluation, response_status: u16, decision_receipt_id: Option<&str>, ) -> Result<HttpReceipt, HttpAuthorityError>
pub fn finalize_decision_receipt( &self, decision_receipt: &HttpReceipt, response_status: u16, ) -> Result<HttpReceipt, HttpAuthorityError>
Trait Implementations§
Source§impl Clone for HttpAuthority
impl Clone for HttpAuthority
Source§fn clone(&self) -> HttpAuthority
fn clone(&self) -> HttpAuthority
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 Freeze for HttpAuthority
impl !RefUnwindSafe for HttpAuthority
impl Send for HttpAuthority
impl Sync for HttpAuthority
impl Unpin for HttpAuthority
impl UnsafeUnpin for HttpAuthority
impl !UnwindSafe for HttpAuthority
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