pub struct GitWriteRepositoryConfig {
pub remote: String,
pub slug: String,
pub visibility: String,
pub merge_refusals: Vec<String>,
pub author: Option<GitWriteAuthorConfig>,
}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.
The commit identity git.commit uses in this repository (ADR-182 Amendment 20). When
present it replaces the calling actor’s name and email as author and committer; the
actor’s row still authorizes the call, and pushes still present the actor’s credential.
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>,
Auto Trait Implementations§
impl Forget for GitWriteRepositoryConfig
impl Freeze for GitWriteRepositoryConfig
impl Move 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
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> ⓘ
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> ⓘ
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