pub struct Config {Show 13 fields
pub version: u64,
pub github_repository: Option<String>,
pub changelog_show_commit_hash: bool,
pub changelog_show_acknowledgments: bool,
pub changelog_show_release_date: bool,
pub changelog_release_date_format: String,
pub changelog_release_date_timezone: Option<String>,
pub fixed_dependencies: Vec<Vec<String>>,
pub linked_dependencies: Vec<Vec<String>>,
pub ignore_unpublished: bool,
pub ignore: Vec<String>,
pub git_default_branch: Option<String>,
pub git_release_branches: Vec<String>,
}Expand description
Configuration for Sampo
Fields§
§version: u64§github_repository: Option<String>§changelog_show_commit_hash: bool§changelog_show_acknowledgments: bool§changelog_show_release_date: bool§changelog_release_date_format: String§changelog_release_date_timezone: Option<String>§fixed_dependencies: Vec<Vec<String>>§linked_dependencies: Vec<Vec<String>>§ignore_unpublished: bool§ignore: Vec<String>§git_default_branch: Option<String>§git_release_branches: Vec<String>Implementations§
Source§impl Config
impl Config
Sourcepub fn load(root: &Path) -> Result<Self, SampoError>
pub fn load(root: &Path) -> Result<Self, SampoError>
Load configuration from .sampo/config.toml
pub fn default_branch(&self) -> &str
pub fn release_branches(&self) -> BTreeSet<String>
pub fn is_release_branch(&self, branch: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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