pub struct RepositoryConfig {
pub offset: Option<usize>,
pub authors: Option<HashMap<String, String>>,
pub branches: Option<HashMap<String, String>>,
pub allow_unnamed_heads: bool,
pub limit_high: Option<usize>,
pub path_prefix: Option<String>,
pub branch_prefix: Option<String>,
pub tag_prefix: Option<String>,
pub prefix_default_branch: bool,
pub default_branch: Option<String>,
}Fields§
§offset: Option<usize>§branches: Option<HashMap<String, String>>§allow_unnamed_heads: bool§limit_high: Option<usize>§path_prefix: Option<String>§branch_prefix: Option<String>§tag_prefix: Option<String>§prefix_default_branch: bool§default_branch: Option<String>Implementations§
Source§impl RepositoryConfig
impl RepositoryConfig
pub fn default_branch(&self) -> Option<&str>
Trait Implementations§
Source§impl Debug for RepositoryConfig
impl Debug for RepositoryConfig
Source§impl Default for RepositoryConfig
impl Default for RepositoryConfig
Source§impl<'de> Deserialize<'de> for RepositoryConfig
impl<'de> Deserialize<'de> for RepositoryConfig
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 RepositoryConfig
impl PartialEq for RepositoryConfig
Source§impl Serialize for RepositoryConfig
impl Serialize for RepositoryConfig
impl StructuralPartialEq for RepositoryConfig
Auto Trait Implementations§
impl Freeze for RepositoryConfig
impl RefUnwindSafe for RepositoryConfig
impl Send for RepositoryConfig
impl Sync for RepositoryConfig
impl Unpin for RepositoryConfig
impl UnwindSafe for RepositoryConfig
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
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