orb_billing/client/
marketplaces.rs

1// Copyright Materialize, Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License in the LICENSE file at the
6// root of this repository, or online at
7//
8//     http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16use serde_enum_str::{Deserialize_enum_str, Serialize_enum_str};
17
18/// An external marketplace to which subscriptions can be attached.
19#[non_exhaustive]
20#[derive(Clone, Debug, PartialEq, Eq, Hash, Deserialize_enum_str, Serialize_enum_str)]
21#[serde(rename_all = "snake_case")]
22pub enum ExternalMarketplace {
23    /// AWS Marketplace.
24    Aws,
25    /// Azure Marketplace.
26    Azure,
27    /// Google Cloud Marketplace.
28    Google,
29    /// An unknown marketplace.
30    #[serde(other)]
31    Other(String),
32}