Struct wasmcloud_core::host::HostData
source · pub struct HostData {Show 19 fields
pub host_id: String,
pub lattice_rpc_prefix: String,
pub link_name: String,
pub lattice_rpc_user_jwt: String,
pub lattice_rpc_user_seed: String,
pub lattice_rpc_url: String,
pub provider_key: String,
pub env_values: HostEnvValues,
pub instance_id: String,
pub link_definitions: Vec<InterfaceLinkDefinition>,
pub cluster_issuers: Vec<String>,
pub config: HashMap<String, String>,
pub secrets: HashMap<String, SecretValue>,
pub host_xkey_public_key: String,
pub provider_xkey_private_key: String,
pub default_rpc_timeout_ms: Option<u64>,
pub structured_logging: bool,
pub log_level: Option<Level>,
pub otel_config: OtelConfig,
}
Expand description
initialization data for a capability provider
Fields§
§host_id: String
§lattice_rpc_prefix: String
§link_name: String
§lattice_rpc_user_jwt: String
§lattice_rpc_user_seed: String
§lattice_rpc_url: String
§provider_key: String
§env_values: HostEnvValues
§instance_id: String
§link_definitions: Vec<InterfaceLinkDefinition>
initial list of links for provider
cluster_issuers: Vec<String>
list of cluster issuers.
config: HashMap<String, String>
Merged named configuration set for this provider at runtime
secrets: HashMap<String, SecretValue>
Secrets given to this provider at runtime
host_xkey_public_key: String
The public key xkey of the host, used for decrypting secrets
provider_xkey_private_key: String
The private key xkey of the provider, used for decrypting secrets
default_rpc_timeout_ms: Option<u64>
Host-wide default RPC timeout for rpc messages, in milliseconds. Defaults to 2000.
structured_logging: bool
True if structured logging is enabled for the host. Providers should use the same setting as the host.
log_level: Option<Level>
The log level providers should log at
otel_config: OtelConfig
Trait Implementations§
source§impl<'de> Deserialize<'de> for HostData
impl<'de> Deserialize<'de> for HostData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl ZeroizeOnDrop for HostData
Auto Trait Implementations§
impl Freeze for HostData
impl RefUnwindSafe for HostData
impl Send for HostData
impl Sync for HostData
impl Unpin for HostData
impl UnwindSafe for HostData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)