pub struct SkillPolicy {
pub privacy: SkillPrivacyPolicy,
pub cache: SkillCacheMode,
pub cassette: SkillCassetteMode,
pub idempotent: bool,
pub semantic_key: Option<String>,
}Expand description
Privacy, caching, and recording policy attached to a SkillCard.
Fields§
§privacy: SkillPrivacyPolicyHow much of the raw payload may leave the local boundary.
cache: SkillCacheModeCaching behavior for results (effective only when idempotent).
cassette: SkillCassetteModeCassette record/replay behavior for calls.
idempotent: boolWhether repeated calls with the same arguments yield the same result, which is what makes caching sound.
semantic_key: Option<String>Optional explicit key used to derive the cache/cassette identity for a call instead of the default argument-derived key.
Trait Implementations§
Source§impl Clone for SkillPolicy
impl Clone for SkillPolicy
Source§fn clone(&self) -> SkillPolicy
fn clone(&self) -> SkillPolicy
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 moreSource§impl Debug for SkillPolicy
impl Debug for SkillPolicy
Source§impl Default for SkillPolicy
impl Default for SkillPolicy
impl Eq for SkillPolicy
Source§impl PartialEq for SkillPolicy
impl PartialEq for SkillPolicy
Source§fn eq(&self, other: &SkillPolicy) -> bool
fn eq(&self, other: &SkillPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SkillPolicy
Auto Trait Implementations§
impl Freeze for SkillPolicy
impl RefUnwindSafe for SkillPolicy
impl Send for SkillPolicy
impl Sync for SkillPolicy
impl Unpin for SkillPolicy
impl UnsafeUnpin for SkillPolicy
impl UnwindSafe for SkillPolicy
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