pub struct RepositoryRuleParamsRestrictedCommits {
pub oid: String,
pub reason: Option<String>,
}
Expand description
RepositoryRuleParamsRestrictedCommits : Restricted commit
Fields§
§oid: String
Full or abbreviated commit hash to reject
reason: Option<String>
Reason for restriction
Implementations§
Source§impl RepositoryRuleParamsRestrictedCommits
impl RepositoryRuleParamsRestrictedCommits
Sourcepub fn new(oid: String) -> RepositoryRuleParamsRestrictedCommits
pub fn new(oid: String) -> RepositoryRuleParamsRestrictedCommits
Restricted commit
Trait Implementations§
Source§impl Clone for RepositoryRuleParamsRestrictedCommits
impl Clone for RepositoryRuleParamsRestrictedCommits
Source§fn clone(&self) -> RepositoryRuleParamsRestrictedCommits
fn clone(&self) -> RepositoryRuleParamsRestrictedCommits
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 Default for RepositoryRuleParamsRestrictedCommits
impl Default for RepositoryRuleParamsRestrictedCommits
Source§fn default() -> RepositoryRuleParamsRestrictedCommits
fn default() -> RepositoryRuleParamsRestrictedCommits
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepositoryRuleParamsRestrictedCommits
impl<'de> Deserialize<'de> for RepositoryRuleParamsRestrictedCommits
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 RepositoryRuleParamsRestrictedCommits
impl PartialEq for RepositoryRuleParamsRestrictedCommits
Source§fn eq(&self, other: &RepositoryRuleParamsRestrictedCommits) -> bool
fn eq(&self, other: &RepositoryRuleParamsRestrictedCommits) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RepositoryRuleParamsRestrictedCommits
Auto Trait Implementations§
impl Freeze for RepositoryRuleParamsRestrictedCommits
impl RefUnwindSafe for RepositoryRuleParamsRestrictedCommits
impl Send for RepositoryRuleParamsRestrictedCommits
impl Sync for RepositoryRuleParamsRestrictedCommits
impl Unpin for RepositoryRuleParamsRestrictedCommits
impl UnwindSafe for RepositoryRuleParamsRestrictedCommits
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