pub struct ClientConfig {Show 19 fields
pub application_name: String,
pub application_uri: String,
pub product_uri: String,
pub create_sample_keypair: bool,
pub certificate_path: Option<PathBuf>,
pub private_key_path: Option<PathBuf>,
pub trust_server_certs: bool,
pub verify_server_certs: bool,
pub pki_dir: PathBuf,
pub preferred_locales: Vec<String>,
pub default_endpoint: String,
pub user_tokens: BTreeMap<String, ClientUserToken>,
pub endpoints: BTreeMap<String, ClientEndpoint>,
pub decoding_options: DecodingOptions,
pub session_retry_limit: i32,
pub session_retry_interval: u32,
pub session_timeout: u32,
pub performance: Performance,
pub session_name: String,
}Expand description
Client OPC UA configuration
Fields§
§application_name: StringName of the application that the client presents itself as to the server
application_uri: StringThe application uri
product_uri: StringProduct uri
create_sample_keypair: boolAutocreates public / private keypair if they don’t exist. For testing/samples only since you do not have control of the values
certificate_path: Option<PathBuf>Custom certificate path, to be used instead of the default .der certificate path
private_key_path: Option<PathBuf>Custom private key path, to be used instead of the default private key path
trust_server_certs: boolAuto trusts server certificates. For testing/samples only unless you’re sure what you’re doing.
verify_server_certs: boolVerify server certificates. For testing/samples only unless you’re sure what you’re doing.
pki_dir: PathBufPKI folder, either absolute or relative to executable
preferred_locales: Vec<String>Preferred locales
default_endpoint: StringIdentifier of the default endpoint
user_tokens: BTreeMap<String, ClientUserToken>User tokens
endpoints: BTreeMap<String, ClientEndpoint>List of end points
decoding_options: DecodingOptionsDecoding options used for serialization / deserialization
session_retry_limit: i32Max retry limit -1, 0 or number
session_retry_interval: u32Retry interval in milliseconds
session_timeout: u32Session timeout period in milliseconds
performance: PerformanceClient performance settings
session_name: StringSession name
Implementations§
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more