[go: up one dir, main page]

azure_core 0.30.1

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

/// Defines a static `Url`.
#[macro_export]
macro_rules! static_url {
    ( $(#[$outer:meta])* $name:ident, $value:expr) => {
        $(#[$outer])*
        pub static $name: ::std::sync::LazyLock<$crate::http::Url> = ::std::sync::LazyLock::new(|| {
            $crate::http::Url::parse($value).expect("hardcoded URL must parse")
        });
    };
}