azure_core 0.33.0

Rust wrappers around Microsoft Azure REST APIs - Core crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

/// Policy options to telemeter the `User-Agent` header.
#[derive(Clone, Debug, Default)]
pub struct UserAgentOptions {
    /// Set the application ID in the `User-Agent` header that can be telemetered.
    ///
    /// # Panics
    ///
    /// Panics if [`UserAgentOptions::application_id`] is greater than 24 characters.
    /// See [guidelines](https://azure.github.io/azure-sdk/general_azurecore.html#azurecore-http-telemetry-appid-length) for details.
    pub application_id: Option<String>,
}