pub enum Approve {
Always,
Prompt,
Never,
}Expand description
The shared host policy, under the durable task layer’s existing public name. What a host does about a consequential call.
The same three answers basis-acp, basis-tasks, and the CLI had each been spelling for themselves.
Variants§
Always
Act without asking.
Prompt
Ask whichever host is answering for this session.
Never
Refuse anything that changes state outside the process.
Implementations§
Source§impl ApprovalPolicy
impl ApprovalPolicy
Sourcepub const fn type_tag(self) -> &'static str
pub const fn type_tag(self) -> &'static str
The stable lowercase identifier shared by persisted task metadata, protocol adapters, and command-line parsers.
Sourcepub fn from_type_tag(tag: &str) -> Option<ApprovalPolicy>
pub fn from_type_tag(tag: &str) -> Option<ApprovalPolicy>
Reads a stable lowercase identifier.
Trait Implementations§
Source§impl Clone for ApprovalPolicy
impl Clone for ApprovalPolicy
Source§fn clone(&self) -> ApprovalPolicy
fn clone(&self) -> ApprovalPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ApprovalPolicy
Source§impl Debug for ApprovalPolicy
impl Debug for ApprovalPolicy
Source§impl Default for ApprovalPolicy
impl Default for ApprovalPolicy
Source§fn default() -> ApprovalPolicy
fn default() -> ApprovalPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApprovalPolicy
impl<'de> Deserialize<'de> for ApprovalPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApprovalPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApprovalPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApprovalPolicy
Source§impl PartialEq for ApprovalPolicy
impl PartialEq for ApprovalPolicy
Source§impl Serialize for ApprovalPolicy
impl Serialize for ApprovalPolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ApprovalPolicy
Auto Trait Implementations§
impl Freeze for ApprovalPolicy
impl RefUnwindSafe for ApprovalPolicy
impl Send for ApprovalPolicy
impl Sync for ApprovalPolicy
impl Unpin for ApprovalPolicy
impl UnsafeUnpin for ApprovalPolicy
impl UnwindSafe for ApprovalPolicy
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