pub struct ResponderPolicy {
pub audiences: Vec<Audience>,
pub requires_assertion: bool,
}Expand description
The frozen eligibility rule for one instance.
Frozen at publication: an offer cannot widen who may answer it after the fact, which is the “attenuate, never amplify” law applied to responders.
Fields§
§audiences: Vec<Audience>Audiences this offer is open to.
requires_assertion: boolWhether the responder must present an authenticated assertion.
Trait Implementations§
Source§impl Clone for ResponderPolicy
impl Clone for ResponderPolicy
Source§impl Debug for ResponderPolicy
impl Debug for ResponderPolicy
Source§impl<'de> Deserialize<'de> for ResponderPolicy
impl<'de> Deserialize<'de> for ResponderPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResponderPolicy
Source§impl PartialEq for ResponderPolicy
impl PartialEq for ResponderPolicy
Source§impl Serialize for ResponderPolicy
impl Serialize for ResponderPolicy
impl StructuralPartialEq for ResponderPolicy
Auto Trait Implementations§
impl Freeze for ResponderPolicy
impl RefUnwindSafe for ResponderPolicy
impl Send for ResponderPolicy
impl Sync for ResponderPolicy
impl Unpin for ResponderPolicy
impl UnsafeUnpin for ResponderPolicy
impl UnwindSafe for ResponderPolicy
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