pub struct ModuleOperationsProvider { /* private fields */ }Implementations§
Source§impl ModuleOperationsProvider
impl ModuleOperationsProvider
Sourcepub fn new(
service_id: impl Into<String>,
service_principal: impl Into<String>,
service_revision: impl Into<String>,
releases: impl IntoIterator<Item = ModuleRelease>,
) -> Result<Self, ModuleOperationsProviderError>
pub fn new( service_id: impl Into<String>, service_principal: impl Into<String>, service_revision: impl Into<String>, releases: impl IntoIterator<Item = ModuleRelease>, ) -> Result<Self, ModuleOperationsProviderError>
Builds the Service-owned Module catalog. Every release is validated before it can be advertised or queried through the System Plane.
pub fn advertisement() -> CapabilityAdvertisement
pub fn service_id(&self) -> &str
pub fn service_principal(&self) -> &str
pub fn service_revision(&self) -> &str
Sourcepub fn set_config_value(
&self,
module_id: &str,
key: &str,
value: Value,
) -> Result<(), ModuleOperationsError>
pub fn set_config_value( &self, module_id: &str, key: &str, value: Value, ) -> Result<(), ModuleOperationsError>
Seeds one descriptor-declared value for integration tests and Service bootstrap code. Secret-bearing values are accepted but never returned.
pub fn set_runtime_status( &self, module_id: &str, status: ModuleRuntimeStatus, ) -> Result<(), ModuleOperationsError>
pub fn inventory( &self, context: &ManagedServiceContext, ) -> Result<ModuleInventorySnapshot, ModuleOperationsError>
pub fn resolve_contributions( &self, request: &ActionContributionResolutionRequest, ) -> Result<ActionContributionResolution, ModuleOperationsError>
pub fn read_config( &self, request: &ModuleConfigReadRequest, ) -> Result<ModuleConfigReadResponse, ModuleOperationsError>
pub fn write_config( &self, request: &ModuleConfigWriteRequest, ) -> Result<ModuleConfigWriteResponse, ModuleOperationsError>
Trait Implementations§
Source§impl Clone for ModuleOperationsProvider
impl Clone for ModuleOperationsProvider
Source§fn clone(&self) -> ModuleOperationsProvider
fn clone(&self) -> ModuleOperationsProvider
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 moreAuto Trait Implementations§
impl Freeze for ModuleOperationsProvider
impl RefUnwindSafe for ModuleOperationsProvider
impl Send for ModuleOperationsProvider
impl Sync for ModuleOperationsProvider
impl Unpin for ModuleOperationsProvider
impl UnsafeUnpin for ModuleOperationsProvider
impl UnwindSafe for ModuleOperationsProvider
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 moreSource§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