pub struct ChartInstallService { /* private fields */ }Expand description
The engine. Holds the pool, the persistence port, and the registry of datasets registered by the composing service.
Implementations§
Source§impl ChartInstallService
impl ChartInstallService
pub fn new( repo: Arc<dyn ChartInstallRepository>, pool: PgPool, datasets: Vec<Arc<ChartDataset>>, ) -> Self
Sourcepub fn list_charts(&self) -> Vec<ChartInfo>
pub fn list_charts(&self) -> Vec<ChartInfo>
Registered charts, in registration order.
Sourcepub async fn install(
&self,
chart_code: &str,
) -> Result<InstallReport, ChartInstallError>
pub async fn install( &self, chart_code: &str, ) -> Result<InstallReport, ChartInstallError>
Install chart_code onto company_id. One transaction; the ambient org scope is
relayed onto it first so the composing service’s tenancy fence accepts the writes
as the app role (ADR-0029 — no relay on an undecorated deployment).
Auto Trait Implementations§
impl !RefUnwindSafe for ChartInstallService
impl !UnwindSafe for ChartInstallService
impl Freeze for ChartInstallService
impl Send for ChartInstallService
impl Sync for ChartInstallService
impl Unpin for ChartInstallService
impl UnsafeUnpin for ChartInstallService
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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