Skip to main content

ProviderState

Trait ProviderState 

Source
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§

Source

fn kind(&self) -> &'static str

Source

fn options(&self) -> ProviderOptions

Source

fn set_options(&mut self, options: ProviderOptions)

Source

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.

Source

fn clone_boxed(&self) -> Box<dyn ProviderState>

Implementors§