Struct gitlab::types::RepoBranch
source · pub struct RepoBranch {
pub name: String,
pub commit: Option<RepoCommit>,
pub merged: Option<bool>,
pub protected: Option<bool>,
pub developers_can_push: Option<bool>,
pub developers_can_merge: Option<bool>,
pub can_push: Option<bool>,
pub default: Option<bool>,
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description
A branch on a repository.
Fields§
§name: String
👎Deprecated since 0.1609.0: define deserialization types in client code
The name of the branch.
commit: Option<RepoCommit>
👎Deprecated since 0.1609.0: define deserialization types in client code
The commit of the branch.
merged: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether the branch is merged into the main branch or not.
protected: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether the branch is protected or not.
developers_can_push: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether the developers can push directly to the branch or not.
developers_can_merge: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether the developers can merge into the branch or not.
can_push: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether the current user can push to the branch.
default: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code
Whether the branch is the repository default branch.
Trait Implementations§
source§impl Clone for RepoBranch
impl Clone for RepoBranch
source§fn clone(&self) -> RepoBranch
fn clone(&self) -> RepoBranch
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 RepoBranch
impl Debug for RepoBranch
source§impl<'de> Deserialize<'de> for RepoBranch
impl<'de> Deserialize<'de> for RepoBranch
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 RepoBranch
impl RefUnwindSafe for RepoBranch
impl Send for RepoBranch
impl Sync for RepoBranch
impl Unpin for RepoBranch
impl UnwindSafe for RepoBranch
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