pub struct HttpLysAsk { /* private fields */ }Expand description
lys-pass’s client behind the LiveLysAsk seam.
Implementations§
Source§impl HttpLysAsk
impl HttpLysAsk
Sourcepub fn new(issuer: &str, handle: Handle) -> Result<Self, Error>
pub fn new(issuer: &str, handle: Handle) -> Result<Self, Error>
Asks issuer through a fresh HTTP client driven by handle’s runtime.
§Errors
The issuer is not an HTTP origin.
Sourcepub fn asking_as(self, credential: String) -> Self
pub fn asking_as(self, credential: String) -> Self
Asks the batch check as this liminal’s app, credential, about the
holder, instead of with the holder’s own pass.
Sourcepub fn with_drafts(self, keeper: Arc<dyn PreparedDraftKeeper>) -> Self
pub fn with_drafts(self, keeper: Arc<dyn PreparedDraftKeeper>) -> Self
Installs the target registry preparation and waiting writer.
Sourcepub fn ask_prepared(
&self,
pass: &str,
act: &PreparedAct<'_>,
limits: DraftLimits,
) -> Result<PreparedAnswer, Error>
pub fn ask_prepared( &self, pass: &str, act: &PreparedAct<'_>, limits: DraftLimits, ) -> Result<PreparedAnswer, Error>
Asks about a complete prepared act, preserving the exact approver words.
§Errors
Missing keeper, invalid or oversized input, or Lys’s live refusal.
Trait Implementations§
Source§impl Debug for HttpLysAsk
impl Debug for HttpLysAsk
Source§impl LiveLysAsk for HttpLysAsk
impl LiveLysAsk for HttpLysAsk
Auto Trait Implementations§
impl !RefUnwindSafe for HttpLysAsk
impl !UnwindSafe for HttpLysAsk
impl Freeze for HttpLysAsk
impl Send for HttpLysAsk
impl Sync for HttpLysAsk
impl Unpin for HttpLysAsk
impl UnsafeUnpin for HttpLysAsk
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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