pub struct MigrationOptions {
pub migrate_issues: bool,
pub migrate_pull_requests: bool,
pub migrate_releases: bool,
pub migrate_wiki: bool,
pub migrate_labels: bool,
pub migrate_milestones: bool,
pub include_closed: bool,
pub rewrite_links: bool,
pub user_mapping: HashMap<String, String>,
}Expand description
Options for controlling what gets migrated.
Fields§
§migrate_issues: boolMigrate issues.
migrate_pull_requests: boolMigrate pull requests / merge requests.
migrate_releases: boolMigrate releases and assets.
migrate_wiki: boolMigrate wiki.
migrate_labels: boolMigrate labels.
migrate_milestones: boolMigrate milestones.
include_closed: boolInclude closed issues/PRs.
rewrite_links: boolRewrite content links to point to Guts.
user_mapping: HashMap<String, String>Map of source usernames to Guts usernames.
Implementations§
Source§impl MigrationOptions
impl MigrationOptions
Sourcepub fn with_issues(self, migrate: bool) -> Self
pub fn with_issues(self, migrate: bool) -> Self
Enable or disable issue migration.
Sourcepub fn with_pull_requests(self, migrate: bool) -> Self
pub fn with_pull_requests(self, migrate: bool) -> Self
Enable or disable pull request migration.
Sourcepub fn with_releases(self, migrate: bool) -> Self
pub fn with_releases(self, migrate: bool) -> Self
Enable or disable release migration.
Sourcepub fn with_labels(self, migrate: bool) -> Self
pub fn with_labels(self, migrate: bool) -> Self
Enable or disable label migration.
Sourcepub fn with_milestones(self, migrate: bool) -> Self
pub fn with_milestones(self, migrate: bool) -> Self
Enable or disable milestone migration.
Sourcepub fn with_closed(self, include: bool) -> Self
pub fn with_closed(self, include: bool) -> Self
Enable or disable including closed items.
Sourcepub fn with_link_rewriting(self, rewrite: bool) -> Self
pub fn with_link_rewriting(self, rewrite: bool) -> Self
Enable or disable link rewriting.
Trait Implementations§
Source§impl Clone for MigrationOptions
impl Clone for MigrationOptions
Source§fn clone(&self) -> MigrationOptions
fn clone(&self) -> MigrationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MigrationOptions
impl Debug for MigrationOptions
Auto Trait Implementations§
impl Freeze for MigrationOptions
impl RefUnwindSafe for MigrationOptions
impl Send for MigrationOptions
impl Sync for MigrationOptions
impl Unpin for MigrationOptions
impl UnsafeUnpin for MigrationOptions
impl UnwindSafe for MigrationOptions
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