Struct gitlab::types::ProtectedRepoBranch
source · pub struct ProtectedRepoBranch {
pub name: String,
pub push_access_levels: Vec<PRBAccessLevel>,
pub merge_access_levels: Vec<PRBAccessLevel>,
pub code_owner_approval_required: Option<bool>,
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description
A protected branch on a repository
Fields§
§name: String
👎Deprecated since 0.1609.0: define deserialization types in client code
§push_access_levels: Vec<PRBAccessLevel>
👎Deprecated since 0.1609.0: define deserialization types in client code
§merge_access_levels: Vec<PRBAccessLevel>
👎Deprecated since 0.1609.0: define deserialization types in client code
§code_owner_approval_required: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code
Trait Implementations§
source§impl Clone for ProtectedRepoBranch
impl Clone for ProtectedRepoBranch
source§fn clone(&self) -> ProtectedRepoBranch
fn clone(&self) -> ProtectedRepoBranch
Returns a copy 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 ProtectedRepoBranch
impl Debug for ProtectedRepoBranch
source§impl<'de> Deserialize<'de> for ProtectedRepoBranch
impl<'de> Deserialize<'de> for ProtectedRepoBranch
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
Auto Trait Implementations§
impl Freeze for ProtectedRepoBranch
impl RefUnwindSafe for ProtectedRepoBranch
impl Send for ProtectedRepoBranch
impl Sync for ProtectedRepoBranch
impl Unpin for ProtectedRepoBranch
impl UnwindSafe for ProtectedRepoBranch
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