Trait GestaltContext
pub trait GestaltContext {
type Output<T>;
type CompositeOutput;
// Required methods
fn new_output<T>(&self, value: &T) -> Self::Output<T>
where T: Serialize;
fn new_secret<T>(&self, value: &T) -> Self::Output<T>
where T: Serialize;
fn register_resource(
&self,
request: RegisterResourceRequest<'_, Self::Output<()>>,
) -> Self::CompositeOutput;
fn invoke_resource(
&self,
request: InvokeResourceRequest<'_, Self::Output<()>>,
) -> Self::CompositeOutput;
fn get_config(
&self,
name: Option<&str>,
key: &str,
) -> Option<ConfigValue<Self::Output<String>>>;
}Required Associated Types§
type Output<T>
type CompositeOutput
Required Methods§
fn new_output<T>(&self, value: &T) -> Self::Output<T>where
T: Serialize,
fn new_secret<T>(&self, value: &T) -> Self::Output<T>where
T: Serialize,
fn register_resource( &self, request: RegisterResourceRequest<'_, Self::Output<()>>, ) -> Self::CompositeOutput
fn invoke_resource( &self, request: InvokeResourceRequest<'_, Self::Output<()>>, ) -> Self::CompositeOutput
fn get_config( &self, name: Option<&str>, key: &str, ) -> Option<ConfigValue<Self::Output<String>>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.