openapi_github/models/
deployment_branch_policy_name_pattern.rs

1/*
2 * GitHub's official OpenAPI spec + Octokit extension
3 *
4 * OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs
5 *
6 * The version of the OpenAPI document: 16.6.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DeploymentBranchPolicyNamePattern {
16    /// The name pattern that branches must match in order to deploy to the environment.  Wildcard characters will not match `/`. For example, to match branches that begin with `release/` and contain an additional single slash, use `release/_*_/_*`. For more information about pattern matching syntax, see the [Ruby File.fnmatch documentation](https://ruby-doc.org/core-2.5.1/File.html#method-c-fnmatch).
17    #[serde(rename = "name")]
18    pub name: String,
19}
20
21impl DeploymentBranchPolicyNamePattern {
22    pub fn new(name: String) -> DeploymentBranchPolicyNamePattern {
23        DeploymentBranchPolicyNamePattern {
24            name,
25        }
26    }
27}
28