pub struct ActionProfile {
pub default_ttl_ms: u64,
pub max_ttl_ms: u64,
pub audit: AuditRequirement,
pub requires_account: bool,
pub requires_client: bool,
pub reconcilable: bool,
}Expand description
Per-action policy, as data. Mail’s send, forward, delete and attach and Pulse’s approve and
unlock are entries of an ApprovalProfile, not code.
Fields§
§default_ttl_ms: u64Lifetime of a request that names none.
max_ttl_ms: u64Longest lifetime a request may ask for.
audit: AuditRequirement§requires_account: boolA request for this action must name an account.
requires_client: boolA request for this action must name a client (Pulse’s client: binding).
reconcilable: boolThe effect can be asked whether it happened (EffectReconciler), so an unsettled claim
need not become OutcomeUnknown.
Implementations§
Source§impl ActionProfile
impl ActionProfile
Sourcepub fn new(ttl_ms: u64) -> Self
pub fn new(ttl_ms: u64) -> Self
A profile with ttl_ms as both default and maximum, best-effort audit, no required
account or client, not reconcilable.
pub fn max_ttl_ms(self, ms: u64) -> Self
pub fn audit(self, audit: AuditRequirement) -> Self
pub fn requires_account(self, on: bool) -> Self
pub fn requires_client(self, on: bool) -> Self
pub fn reconcilable(self, on: bool) -> Self
Trait Implementations§
Source§impl Clone for ActionProfile
impl Clone for ActionProfile
Source§impl Debug for ActionProfile
impl Debug for ActionProfile
Source§impl<'de> Deserialize<'de> for ActionProfile
impl<'de> Deserialize<'de> for ActionProfile
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 ActionProfile
Source§impl PartialEq for ActionProfile
impl PartialEq for ActionProfile
Source§impl Serialize for ActionProfile
impl Serialize for ActionProfile
impl StructuralPartialEq for ActionProfile
Auto Trait Implementations§
impl Freeze for ActionProfile
impl RefUnwindSafe for ActionProfile
impl Send for ActionProfile
impl Sync for ActionProfile
impl Unpin for ActionProfile
impl UnsafeUnpin for ActionProfile
impl UnwindSafe for ActionProfile
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