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: StringThe public key xkey of the host, used for decrypting secrets
provider_xkey_private_key: StringThe 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: boolTrue 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: OtelConfigTrait 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§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more