pub struct Client { /* private fields */ }Implementations§
source§impl Client
impl Client
pub async fn new_with(settings: Config) -> Result<Self, Error>
pub fn branch(&self) -> &str
pub fn pull_request(&self) -> &str
pub fn title(&self) -> &str
pub fn pr_number(&self) -> i64
pub fn owner(&self) -> &str
pub fn repo(&self) -> &str
pub fn line_limit(&self) -> usize
pub fn set_title(&mut self, title: &str)
pub fn is_default_branch(&self) -> bool
pub fn section(&self) -> Option<&str>
pub fn entry(&self) -> Option<&str>
pub fn changelog_as_str(&self) -> &str
pub fn set_changelog(&mut self, changelog: &str)
Trait Implementations§
source§impl GitOps for Client
impl GitOps for Client
source§fn repo_status(&self) -> Result<String, Error>
fn repo_status(&self) -> Result<String, Error>
Report the status of the git repo in a human readable format
source§fn repo_files_not_staged(&self) -> Result<Vec<String>, Error>
fn repo_files_not_staged(&self) -> Result<Vec<String>, Error>
Report a list of the files that have not been staged
source§fn repo_files_staged(&self) -> Result<Vec<String>, Error>
fn repo_files_staged(&self) -> Result<Vec<String>, Error>
Report a list of the files that have not been staged
fn commit_changelog(&self, tag: Option<&str>) -> Result<String, Error>
fn commit_changelog_gpg(&mut self, tag: Option<&str>) -> Result<String, Error>
fn create_tag( &self, tag: &str, commit_id: Oid, sig: &Signature<'_>, ) -> Result<(), Error>
fn push_changelog(&self, version: Option<&str>) -> Result<(), Error>
async fn get_commitish_for_tag(&self, tag: &str) -> Result<String, Error>
fn stage_files(&self, files: Vec<String>) -> Result<(), Error>
fn branch_list(&self) -> Result<String, Error>
fn branch_status(&self) -> Result<String, Error>
source§impl MakeRelease for Client
impl MakeRelease for Client
source§impl UpdateFromPr for Client
impl UpdateFromPr for Client
fn create_entry(&mut self) -> Result<(), Error>
fn update_changelog(&mut self) -> Result<Option<(ChangeKind, String)>, Error>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl !Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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