pub struct ConfigFile { /* private fields */ }Implementations§
Source§impl ConfigFile
impl ConfigFile
Sourcepub fn new<T: Read, FE: Fn(&str) -> Result<String>>(
readers: Vec<T>,
url: &RemoteURL,
env: FE,
) -> Result<ConfigFile>
pub fn new<T: Read, FE: Fn(&str) -> Result<String>>( readers: Vec<T>, url: &RemoteURL, env: FE, ) -> Result<ConfigFile>
Reads the configuration file and returns a ConfigFile struct that holds the configuration data for a given domain and project path. domain can be a top level domain such as gitlab.com or a subdomain such as gitlab.company.com. The project path is the path of the project in the remote after the domain. Ex: gitlab.com/jordilin/gitar -> /jordilin/gitar This is to allow for overriding project specific configurations such as reviewers, assignees, etc.
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§fn clone(&self) -> ConfigFile
fn clone(&self) -> ConfigFile
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 ConfigProperties for ConfigFile
impl ConfigProperties for ConfigFile
fn api_token(&self) -> &str
fn cache_location(&self) -> Option<&str>
fn preferred_assignee_username(&self) -> Option<Member>
fn merge_request_members(&self) -> Vec<Member>
fn merge_request_description_signature(&self) -> &str
fn get_cache_expiration(&self, api_operation: &ApiOperation) -> &str
fn get_max_pages(&self, api_operation: &ApiOperation) -> u32
fn rate_limit_remaining_threshold(&self) -> u32
Source§impl Debug for ConfigFile
impl Debug for ConfigFile
Source§impl Default for ConfigFile
impl Default for ConfigFile
Source§fn default() -> ConfigFile
fn default() -> ConfigFile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnwindSafe for ConfigFile
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