pub struct GitWriteRepositoryConfig {
pub remote: String,
pub slug: String,
pub visibility: String,
pub merge_refusals: Vec<String>,
}Fields§
§remote: StringHTTPS platform remote, or an absolute path / file:/// URL with an empty slug.
slug: Stringowner/name for HTTPS; empty explicitly opts into credential-free local pushes.
visibility: String§merge_refusals: Vec<String>Merge dispatch refusals for this repository (ADR-182 Amendment 7):
opener refuses a git.pr_merge dispatched by the account or actor
that opened the pull request; last_pusher refuses one dispatched by
the login on the newest push receipt for expected_head. Empty (the
default) refuses neither.
Implementations§
Source§impl GitWriteRepositoryConfig
impl GitWriteRepositoryConfig
pub const MERGE_REFUSALS: [&'static str; 2]
Sourcepub fn refuses_merge_by(&self, entry: &str) -> bool
pub fn refuses_merge_by(&self, entry: &str) -> bool
Whether this repository row lists the named merge refusal.
Trait Implementations§
Source§impl Clone for GitWriteRepositoryConfig
impl Clone for GitWriteRepositoryConfig
Source§impl Debug for GitWriteRepositoryConfig
impl Debug for GitWriteRepositoryConfig
Source§impl<'de> Deserialize<'de> for GitWriteRepositoryConfig
impl<'de> Deserialize<'de> for GitWriteRepositoryConfig
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 GitWriteRepositoryConfig
impl RefUnwindSafe for GitWriteRepositoryConfig
impl Send for GitWriteRepositoryConfig
impl Sync for GitWriteRepositoryConfig
impl Unpin for GitWriteRepositoryConfig
impl UnsafeUnpin for GitWriteRepositoryConfig
impl UnwindSafe for GitWriteRepositoryConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more