pub struct ConceptInstance {
pub kind: ConceptKind,
pub location: SourceLocation,
pub tag: String,
pub symbol: Option<String>,
pub idempotent: Option<bool>,
pub bounded: Option<bool>,
pub logs_only: bool,
pub drops_context: bool,
pub critical_path: bool,
pub surface: String,
}Expand description
A single abstract concept instance extracted from source.
Fields§
§kind: ConceptKind§location: SourceLocation§tag: StringFree-form classifier from the adapter (e.g. unwrap, panic_macro, tokio_spawn).
symbol: Option<String>Optional name of the symbol/operation.
idempotent: Option<bool>Whether the adapter believes the operation is idempotent (retries).
bounded: Option<bool>Whether a retry has an explicit bound / backoff.
logs_only: boolAdjacent logging without propagation.
drops_context: boolOriginal error dropped / mapped to unit success.
critical_path: boolCritical path marker (e.g. error handler with TODO).
surface: StringHuman-readable surface form for evidence.
Implementations§
Source§impl ConceptInstance
impl ConceptInstance
pub fn new( kind: ConceptKind, location: SourceLocation, tag: impl Into<String>, surface: impl Into<String>, ) -> Self
pub fn with_symbol(self, s: impl Into<String>) -> Self
pub fn with_idempotent(self, v: bool) -> Self
pub fn with_bounded(self, v: bool) -> Self
pub fn with_logs_only(self, v: bool) -> Self
pub fn with_drops_context(self, v: bool) -> Self
pub fn with_critical_path(self, v: bool) -> Self
Trait Implementations§
Source§impl Clone for ConceptInstance
impl Clone for ConceptInstance
Source§fn clone(&self) -> ConceptInstance
fn clone(&self) -> ConceptInstance
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 ConceptInstance
impl Debug for ConceptInstance
Source§impl<'de> Deserialize<'de> for ConceptInstance
impl<'de> Deserialize<'de> for ConceptInstance
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 ConceptInstance
Source§impl PartialEq for ConceptInstance
impl PartialEq for ConceptInstance
Source§impl Serialize for ConceptInstance
impl Serialize for ConceptInstance
impl StructuralPartialEq for ConceptInstance
Auto Trait Implementations§
impl Freeze for ConceptInstance
impl RefUnwindSafe for ConceptInstance
impl Send for ConceptInstance
impl Sync for ConceptInstance
impl Unpin for ConceptInstance
impl UnsafeUnpin for ConceptInstance
impl UnwindSafe for ConceptInstance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.