Skip to main content

azure_core/http/options/
user_agent.rs

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4/// Policy options to telemeter the `User-Agent` header.
5#[derive(Clone, Debug, Default)]
6pub struct UserAgentOptions {
7    /// Set the application ID in the `User-Agent` header that can be telemetered.
8    ///
9    /// # Panics
10    ///
11    /// Panics if [`UserAgentOptions::application_id`] is greater than 24 characters.
12    /// See [guidelines](https://azure.github.io/azure-sdk/general_azurecore.html#azurecore-http-telemetry-appid-length) for details.
13    pub application_id: Option<String>,
14}