pub struct MembershipSubject { /* private fields */ }Expand description
The verified subject a membership is asked about: the holder the one
Connect verification proved, with the directory kind its signed pass
states. Only Self::from_session makes one.
Implementations§
Source§impl MembershipSubject
impl MembershipSubject
Sourcepub fn from_session(session: &dyn LysSession) -> Result<Self, MembershipRefusal>
pub fn from_session(session: &dyn LysSession) -> Result<Self, MembershipRefusal>
The subject an admitted Lys session proved.
§Errors
MembershipRefusal::HolderKindUnknown when the session cannot name
its holder’s kind; MembershipRefusal::HolderMalformed when the id or
kind is empty or carries control characters.
Sourcepub fn to_contract(&self) -> Subject
pub fn to_contract(&self) -> Subject
The contract’s subject.
Trait Implementations§
Source§impl Clone for MembershipSubject
impl Clone for MembershipSubject
Source§impl Debug for MembershipSubject
impl Debug for MembershipSubject
impl Eq for MembershipSubject
Source§impl Ord for MembershipSubject
impl Ord for MembershipSubject
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MembershipSubject
impl PartialEq for MembershipSubject
Source§impl PartialOrd for MembershipSubject
impl PartialOrd for MembershipSubject
impl StructuralPartialEq for MembershipSubject
Auto Trait Implementations§
impl Freeze for MembershipSubject
impl RefUnwindSafe for MembershipSubject
impl Send for MembershipSubject
impl Sync for MembershipSubject
impl Unpin for MembershipSubject
impl UnsafeUnpin for MembershipSubject
impl UnwindSafe for MembershipSubject
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
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key and return true if they are equal.