Detailed Description
The options that drive a run of this example.
Options the example runs with, gathered so main and the test can call [run] the same way through a single entry point.
Options the example runs with, gathered so main and the test call [run] the same way.
The resource key is required for the cloud deployment; the bind address lets the test pick an ephemeral port while the binary uses a fixed one.
Public Attributes | |
| pub | resource_key: String |
| The 51Degrees cloud resource key (from https://configure.51degrees.com?utm_source=code&utm_medium=example&utm_campaign=51degrees-rust&utm_content=examples-device-detection-examples-src-bin-dd-web-getting-started-cloud.rs&utm_term=resource_key). | |
| pub pub | endpoint: Option<String> |
An optional override for the cloud endpoint, read from _51DEGREES_CLOUD_ENDPOINT. | |
| pub pub pub | address: SocketAddr |
| The socket address the server binds to. | |
| pub | data_file: PathBuf |
| The path to the on-premise Hash data file. | |
| pub pub | address: SocketAddr |
| The socket address the server binds to. | |
| pub | client: DidClient |
| The cloud client the server redeems through, built once at start-up from the resource key, the optional licence key and the endpoint. | |
Member Data Documentation
◆ address [1/2]
| pub pub pub Options::address |
The socket address the server binds to.
◆ address [2/2]
| pub pub Options::address |
The socket address the server binds to.
◆ client
| pub Options::client |
The cloud client the server redeems through, built once at start-up from the resource key, the optional licence key and the endpoint.
◆ data_file
| pub Options::data_file |
The path to the on-premise Hash data file.
◆ endpoint
| pub pub Options::endpoint |
An optional override for the cloud endpoint, read from _51DEGREES_CLOUD_ENDPOINT.
An optional override for the cloud endpoint. None uses the public one.
An optional override for the cloud endpoint. When None the public 51Degrees cloud endpoint is used.
An optional override for the cloud endpoint.
None leaves the choice to the cloud request engine, which reads the same variable and defaults to the public cloud.
When None the public 51Degrees cloud endpoint is used.
◆ resource_key
| pub Options::resource_key |
The 51Degrees cloud resource key (from https://configure.51degrees.com?utm_source=code&utm_medium=example&utm_campaign=51degrees-rust&utm_content=examples-device-detection-examples-src-bin-dd-web-getting-started-cloud.rs&utm_term=resource_key).
The 51Degrees cloud resource key (from https://configure.51degrees.com?utm_source=code&utm_medium=example&utm_campaign=51degrees-rust&utm_content=examples-ip-intelligence-examples-src-bin-ipi-web-getting-started-cloud.rs&utm_term=resource_key).
The cloud resource key that authenticates the request and selects the properties returned. The key must grant both the device and IP intelligence products for this example to print both result sets.
The cloud resource key whose property set is described.
The cloud resource key that authenticates the request and selects the properties returned.
The cloud resource key whose every returned property is printed.
