pub trait ProviderState:
Send
+ Sync
+ Debug {
// Required methods
fn kind(&self) -> &'static str;
fn options(&self) -> ProviderOptions;
fn set_options(&mut self, options: ProviderOptions);
fn serialize_config(&self) -> Value;
fn clone_boxed(&self) -> Box<dyn ProviderState>;
}Required Methods§
fn kind(&self) -> &'static str
fn options(&self) -> ProviderOptions
fn set_options(&mut self, options: ProviderOptions)
Sourcefn serialize_config(&self) -> Value
fn serialize_config(&self) -> Value
Emit the provider-specific JSON body used by ProviderSpec. The
object must NOT contain a type field — [ProviderSpec::Serialize]
layers that on top.