pub struct Gh {
pub username: Option<String>,
pub file_pulls: Option<String>,
pub file_projects: Option<String>,
}
Expand description
Github configuration
Fields§
§username: Option<String>
Path to the movies file
file_pulls: Option<String>
Path to the pulls file
file_projects: Option<String>
Path to the projects file
Implementations§
source§impl Gh
impl Gh
sourcepub fn sync_github(config: &mut Config, matches: Option<&ArgMatches>)
pub fn sync_github(config: &mut Config, matches: Option<&ArgMatches>)
Sync the github data
sourcefn save_pulls(config: &mut Config, _matches: Option<&ArgMatches>)
fn save_pulls(config: &mut Config, _matches: Option<&ArgMatches>)
Save the pulls to the specified file
sourcefn fetch_projects(project_type: ProjectType, debug: u8) -> Vec<GhProject>
fn fetch_projects(project_type: ProjectType, debug: u8) -> Vec<GhProject>
Fetch projects with gh cli
sourcefn save_projects(config: &mut Config, matches: Option<&ArgMatches>)
fn save_projects(config: &mut Config, matches: Option<&ArgMatches>)
Save the projects to the specified file
Trait Implementations§
source§impl CliCommand for Gh
impl CliCommand for Gh
source§impl<'de> Deserialize<'de> for Gh
impl<'de> Deserialize<'de> for Gh
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
Auto Trait Implementations§
impl Freeze for Gh
impl RefUnwindSafe for Gh
impl Send for Gh
impl Sync for Gh
impl Unpin for Gh
impl UnwindSafe for Gh
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