pulumi_wasm_rust/
context.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use pulumi_wasm_wit::client_bindings::component::pulumi_wasm::pulumi_engine::Engine as WitEngine;

pub struct PulumiContext {
    pub(crate) wit_engine: WitEngine,
}

impl PulumiContext {
    pub(crate) fn new(in_preview: bool) -> PulumiContext {
        PulumiContext {
            wit_engine: WitEngine::new(in_preview),
        }
    }

    #[doc(hidden)]
    pub fn get_inner(&self) -> &WitEngine {
        &self.wit_engine
    }
}