pub struct GitLabMigrator { /* private fields */ }Expand description
Migrator for GitLab projects.
Implementations§
Source§impl GitLabMigrator
impl GitLabMigrator
Sourcepub fn new(
gitlab_token: &str,
gitlab_url: &str,
config: MigrationConfig,
) -> Result<Self>
pub fn new( gitlab_token: &str, gitlab_url: &str, config: MigrationConfig, ) -> Result<Self>
Create a new GitLab migrator.
§Arguments
gitlab_token- GitLab personal access tokengitlab_url- GitLab instance URL (e.g., “https://gitlab.com”)config- Migration configuration
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 GitLabMigrator
impl !RefUnwindSafe for GitLabMigrator
impl !UnwindSafe for GitLabMigrator
impl Send for GitLabMigrator
impl Sync for GitLabMigrator
impl Unpin for GitLabMigrator
impl UnsafeUnpin for GitLabMigrator
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