pub enum ProductionModelRegistration {
Registered(RegisteredProductionModel),
LegacyRegistered {
external_metadata_id: ExternalModelMetadataId,
},
}Expand description
Explicit migration result keyed only by external model metadata.
Product paths that require vNext must consume this through
ProductionModelRegistration::into_required. A legacy result exists only
for an explicit registry row; unknown metadata is rejected during
resolution and can never enter the old architecture cascade implicitly.
Variants§
Registered(RegisteredProductionModel)
LegacyRegistered
Fields
§
external_metadata_id: ExternalModelMetadataIdImplementations§
Source§impl ProductionModelRegistration
impl ProductionModelRegistration
pub fn external_metadata_id(&self) -> &ExternalModelMetadataId
Sourcepub fn into_required(self) -> Result<RegisteredProductionModel>
pub fn into_required(self) -> Result<RegisteredProductionModel>
Requires a registered vNext production package and fails closed instead of allowing a product caller to fall back to a legacy executor.
Auto Trait Implementations§
impl Freeze for ProductionModelRegistration
impl RefUnwindSafe for ProductionModelRegistration
impl Send for ProductionModelRegistration
impl Sync for ProductionModelRegistration
impl Unpin for ProductionModelRegistration
impl UnsafeUnpin for ProductionModelRegistration
impl UnwindSafe for ProductionModelRegistration
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more