pub struct MigrationConfig {
pub source_repo: String,
pub guts_url: String,
pub guts_token: Option<String>,
pub target_name: Option<String>,
pub target_owner: Option<String>,
}Expand description
Configuration for a migration operation.
Fields§
§source_repo: StringSource repository identifier (e.g., “owner/repo”).
guts_url: StringGuts node API URL.
guts_token: Option<String>Guts API token for authentication.
target_name: Option<String>Target repository name on Guts (defaults to source name).
target_owner: Option<String>Target owner on Guts (defaults to authenticated user).
Implementations§
Source§impl MigrationConfig
impl MigrationConfig
Sourcepub fn new(source_repo: impl Into<String>, guts_url: impl Into<String>) -> Self
pub fn new(source_repo: impl Into<String>, guts_url: impl Into<String>) -> Self
Create a new migration configuration.
Sourcepub fn with_token(self, token: impl Into<String>) -> Self
pub fn with_token(self, token: impl Into<String>) -> Self
Set the Guts API token.
Sourcepub fn with_target_name(self, name: impl Into<String>) -> Self
pub fn with_target_name(self, name: impl Into<String>) -> Self
Set the target repository name.
Sourcepub fn with_target_owner(self, owner: impl Into<String>) -> Self
pub fn with_target_owner(self, owner: impl Into<String>) -> Self
Set the target owner.
Trait Implementations§
Source§impl Clone for MigrationConfig
impl Clone for MigrationConfig
Source§fn clone(&self) -> MigrationConfig
fn clone(&self) -> MigrationConfig
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 moreAuto Trait Implementations§
impl Freeze for MigrationConfig
impl RefUnwindSafe for MigrationConfig
impl Send for MigrationConfig
impl Sync for MigrationConfig
impl Unpin for MigrationConfig
impl UnsafeUnpin for MigrationConfig
impl UnwindSafe for MigrationConfig
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