pub struct BranchRestrictionPolicy {
pub url: String,
pub users_url: String,
pub teams_url: String,
pub apps_url: String,
pub users: Vec<BranchRestrictionPolicyUsersInner>,
pub teams: Vec<BranchRestrictionPolicyTeamsInner>,
pub apps: Vec<BranchRestrictionPolicyAppsInner>,
}
Expand description
BranchRestrictionPolicy : Branch Restriction Policy
Fields§
§url: String
§users_url: String
§teams_url: String
§apps_url: String
§users: Vec<BranchRestrictionPolicyUsersInner>
§teams: Vec<BranchRestrictionPolicyTeamsInner>
§apps: Vec<BranchRestrictionPolicyAppsInner>
Implementations§
Source§impl BranchRestrictionPolicy
impl BranchRestrictionPolicy
Sourcepub fn new(
url: String,
users_url: String,
teams_url: String,
apps_url: String,
users: Vec<BranchRestrictionPolicyUsersInner>,
teams: Vec<BranchRestrictionPolicyTeamsInner>,
apps: Vec<BranchRestrictionPolicyAppsInner>,
) -> BranchRestrictionPolicy
pub fn new( url: String, users_url: String, teams_url: String, apps_url: String, users: Vec<BranchRestrictionPolicyUsersInner>, teams: Vec<BranchRestrictionPolicyTeamsInner>, apps: Vec<BranchRestrictionPolicyAppsInner>, ) -> BranchRestrictionPolicy
Branch Restriction Policy
Trait Implementations§
Source§impl Clone for BranchRestrictionPolicy
impl Clone for BranchRestrictionPolicy
Source§fn clone(&self) -> BranchRestrictionPolicy
fn clone(&self) -> BranchRestrictionPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BranchRestrictionPolicy
impl Debug for BranchRestrictionPolicy
Source§impl Default for BranchRestrictionPolicy
impl Default for BranchRestrictionPolicy
Source§fn default() -> BranchRestrictionPolicy
fn default() -> BranchRestrictionPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BranchRestrictionPolicy
impl<'de> Deserialize<'de> for BranchRestrictionPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BranchRestrictionPolicy
impl PartialEq for BranchRestrictionPolicy
Source§impl Serialize for BranchRestrictionPolicy
impl Serialize for BranchRestrictionPolicy
impl StructuralPartialEq for BranchRestrictionPolicy
Auto Trait Implementations§
impl Freeze for BranchRestrictionPolicy
impl RefUnwindSafe for BranchRestrictionPolicy
impl Send for BranchRestrictionPolicy
impl Sync for BranchRestrictionPolicy
impl Unpin for BranchRestrictionPolicy
impl UnwindSafe for BranchRestrictionPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more