pub struct ServerConfig {
Show 17 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 certificate_validation: CertificateValidation, pub pki_dir: PathBuf, pub discovery_server_url: Option<String>, pub tcp_config: TcpConfig, pub limits: Limits, pub performance: Performance, pub locale_ids: Vec<String>, pub user_tokens: BTreeMap<String, ServerUserToken>, pub discovery_urls: Vec<String>, pub default_endpoint: Option<String>, pub endpoints: BTreeMap<String, ServerEndpoint>,
}

Fields

application_name: String

An id for this server

application_uri: String

A description for this server

product_uri: String

Product url

create_sample_keypair: bool

Autocreates 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>

Path to a custom certificate, to be used instead of the default .der certificate

private_key_path: Option<PathBuf>

Path to a custom private key, to be used instead of the default private key

certificate_validation: CertificateValidation

Checks the certificate’s time validity

pki_dir: PathBuf

PKI folder, either absolute or relative to executable

discovery_server_url: Option<String>

Url to a discovery server - adding this string causes the server to assume you wish to register the server with a discovery server.

tcp_config: TcpConfig

tcp configuration information

limits: Limits

Server OPA UA limits

performance: Performance

Server Performance

locale_ids: Vec<String>

Supported locale ids

user_tokens: BTreeMap<String, ServerUserToken>

User tokens

discovery_urls: Vec<String>

discovery endpoint url which may or may not be the same as the service endpoints below.

default_endpoint: Option<String>

Default endpoint id

endpoints: BTreeMap<String, ServerEndpoint>

Endpoints supported by the server

Implementations

The default PKI directory

Returns a opc.tcp://server:port url that paths can be appended onto

Find the default endpoint

Find the first endpoint that matches the specified url, security policy and message security mode.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.