pub struct GitHubMigrator { /* private fields */ }Expand description
Migrator for GitHub repositories.
Implementations§
Source§impl GitHubMigrator
impl GitHubMigrator
Sourcepub fn new(github_token: &str, config: MigrationConfig) -> Result<Self>
pub fn new(github_token: &str, config: MigrationConfig) -> Result<Self>
Create a new GitHub migrator.
Sourcepub fn with_progress(self, progress: MigrationProgress) -> Self
pub fn with_progress(self, progress: MigrationProgress) -> Self
Set a progress callback.
Sourcepub async fn migrate(
&self,
options: MigrationOptions,
) -> Result<MigrationReport>
pub async fn migrate( &self, options: MigrationOptions, ) -> Result<MigrationReport>
Run the migration.
Auto Trait Implementations§
impl !Freeze for GitHubMigrator
impl !RefUnwindSafe for GitHubMigrator
impl !UnwindSafe for GitHubMigrator
impl Send for GitHubMigrator
impl Sync for GitHubMigrator
impl Unpin for GitHubMigrator
impl UnsafeUnpin for GitHubMigrator
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