pub struct MigrationReport {Show 16 fields
pub repo_created: bool,
pub git_mirrored: bool,
pub branches_migrated: usize,
pub tags_migrated: usize,
pub issues_migrated: usize,
pub prs_migrated: usize,
pub releases_migrated: usize,
pub assets_migrated: usize,
pub wiki_migrated: bool,
pub labels_migrated: usize,
pub milestones_migrated: usize,
pub errors: Vec<MigrationErrorInfo>,
pub warnings: Vec<String>,
pub started_at: Option<DateTime<Utc>>,
pub completed_at: Option<DateTime<Utc>>,
pub guts_repo_url: Option<String>,
}Expand description
Report of a completed migration.
Fields§
§repo_created: boolWhether the repository was created on Guts.
git_mirrored: boolWhether git data was mirrored successfully.
branches_migrated: usizeNumber of branches migrated.
Number of tags migrated.
issues_migrated: usizeNumber of issues migrated.
prs_migrated: usizeNumber of pull requests migrated.
releases_migrated: usizeNumber of releases migrated.
assets_migrated: usizeNumber of release assets migrated.
wiki_migrated: boolWhether wiki was migrated.
labels_migrated: usizeNumber of labels migrated.
milestones_migrated: usizeNumber of milestones migrated.
errors: Vec<MigrationErrorInfo>Errors encountered during migration.
warnings: Vec<String>Warnings generated during migration.
started_at: Option<DateTime<Utc>>Start time of migration.
completed_at: Option<DateTime<Utc>>End time of migration.
guts_repo_url: Option<String>URL of the migrated repository on Guts.
Implementations§
Source§impl MigrationReport
impl MigrationReport
Sourcepub fn is_successful(&self) -> bool
pub fn is_successful(&self) -> bool
Check if the migration was successful (no critical errors).
Sourcepub fn total_items_migrated(&self) -> usize
pub fn total_items_migrated(&self) -> usize
Get the total number of items migrated.
Sourcepub fn add_error(&mut self, category: &str, message: &str, is_critical: bool)
pub fn add_error(&mut self, category: &str, message: &str, is_critical: bool)
Add an error to the report.
Sourcepub fn add_warning(&mut self, message: impl Into<String>)
pub fn add_warning(&mut self, message: impl Into<String>)
Add a warning to the report.
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Print a summary of the migration.
Trait Implementations§
Source§impl Clone for MigrationReport
impl Clone for MigrationReport
Source§fn clone(&self) -> MigrationReport
fn clone(&self) -> MigrationReport
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 MigrationReport
impl Debug for MigrationReport
Source§impl Default for MigrationReport
impl Default for MigrationReport
Source§fn default() -> MigrationReport
fn default() -> MigrationReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MigrationReport
impl<'de> Deserialize<'de> for MigrationReport
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 MigrationReport
impl RefUnwindSafe for MigrationReport
impl Send for MigrationReport
impl Sync for MigrationReport
impl Unpin for MigrationReport
impl UnsafeUnpin for MigrationReport
impl UnwindSafe for MigrationReport
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