pub struct UpstreamClient {
client: Client,
url: String,
}Fields§
§client: Client§url: StringImplementations§
Source§impl UpstreamClient
impl UpstreamClient
pub fn new(url: String) -> Self
Sourcepub async fn post(
&self,
body: &Value,
aegis_tag: &str,
) -> Result<UpstreamReceipt, UpstreamError>
pub async fn post( &self, body: &Value, aegis_tag: &str, ) -> Result<UpstreamReceipt, UpstreamError>
POST the action payload upstream. The original X-AEGIS-Tag header is required — without it the upstream will L1-DENY for missing identity and we’ll capture that as an upstream_error (NOT as a silent success).
Trait Implementations§
Source§impl Clone for UpstreamClient
impl Clone for UpstreamClient
Source§fn clone(&self) -> UpstreamClient
fn clone(&self) -> UpstreamClient
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 UpstreamClient
impl !RefUnwindSafe for UpstreamClient
impl Send for UpstreamClient
impl Sync for UpstreamClient
impl Unpin for UpstreamClient
impl UnsafeUnpin for UpstreamClient
impl !UnwindSafe for UpstreamClient
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