pub struct SubjectBinding { /* private fields */ }Expand description
Explicit product mapping supplied from admitted resource placements.
This is a target mapping, not an authority token. Only the verified consumer can decide that a pass reaches it.
Implementations§
Source§impl SubjectBinding
impl SubjectBinding
Sourcepub fn new(
network_id: String,
resource_id: String,
subject: String,
) -> Result<Self, SubjectBindingError>
pub fn new( network_id: String, resource_id: String, subject: String, ) -> Result<Self, SubjectBindingError>
Checks an explicitly supplied mapping without deriving its parents.
§Errors
Refuses missing identifiers, whitespace and subject patterns.
Sourcepub fn network_id(&self) -> &str
pub fn network_id(&self) -> &str
Returns the admitted network identity.
Sourcepub const fn resource(&self) -> &AccessResource
pub const fn resource(&self) -> &AccessResource
Borrows the exact subject resource.
Trait Implementations§
Source§impl Debug for SubjectBinding
impl Debug for SubjectBinding
impl Eq for SubjectBinding
Source§impl PartialEq for SubjectBinding
impl PartialEq for SubjectBinding
impl StructuralPartialEq for SubjectBinding
Auto Trait Implementations§
impl Freeze for SubjectBinding
impl RefUnwindSafe for SubjectBinding
impl Send for SubjectBinding
impl Sync for SubjectBinding
impl Unpin for SubjectBinding
impl UnsafeUnpin for SubjectBinding
impl UnwindSafe for SubjectBinding
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<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.