pub enum Answerer {
Caller,
Person,
Grant(String),
}Expand description
The gate’s terms for a duplex call (plexus-auth-core), re-exported so a
caller of this module needs no second import.
Who may answer a question a method asks mid-call — an output item that
expects a reply (BIDIR-1 mechanism). The method declares it
(#[method(answer_by = "…")], BIDIR-1 answerer).
Variants§
Caller
caller (default): the call’s own connection, as the call’s
principal — whatever kind it is.
Person
person: the call’s own connection, and its principal a person
(is_person); an agent’s answer is refused person_required.
Grant(String)
grant:<g>: any connection whose principal holds grant g on the
call’s target (asked of the gate once, per answer) — the owner
approving a step an agent’s call asks.
Implementations§
Source§impl Answerer
impl Answerer
Sourcepub fn declared(&self) -> Option<String>
pub fn declared(&self) -> Option<String>
BIDIR-8: the declaration as written (MethodSchema.answer_by):
None for the default, so a method without one is unchanged.
Trait Implementations§
impl Eq for Answerer
impl StructuralPartialEq for Answerer
Auto Trait Implementations§
impl Freeze for Answerer
impl RefUnwindSafe for Answerer
impl Send for Answerer
impl Sync for Answerer
impl Unpin for Answerer
impl UnsafeUnpin for Answerer
impl UnwindSafe for Answerer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.