pub struct Diag {
pub severity: Severity,
pub summary: String,
pub detail: String,
}Expand description
── THE PROTOCOL DATA MODEL MOVED TO magma-provider-api ────────────
ProviderSchema, PlannedChange, Diag, Severity, ProviderError
and is_retryable were defined here. They describe what a provider
SAYS, not how it is reached, so they now live in the contract crate —
which depends on magma-cty alone, so a native provider can implement
the contract without dragging in tonic.
The edge had to point this way: magma-provider-api declares the
Provider trait, and THIS crate implements it, so the types could not
stay in the crate the trait crate would have had to depend on.
Re-exported unchanged, so every magma_plugin::provider::<T> path
still resolves. Relocation, not redesign.
Fields§
§severity: Severity§summary: String§detail: StringTrait Implementations§
impl Eq for Diag
impl StructuralPartialEq for Diag
Auto Trait Implementations§
impl Freeze for Diag
impl RefUnwindSafe for Diag
impl Send for Diag
impl Sync for Diag
impl Unpin for Diag
impl UnsafeUnpin for Diag
impl UnwindSafe for Diag
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,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request