use crate::share::errors::GitError; #[derive(Debug, Clone)] pub struct GitCredential { pub username: String, pub secret: String, } impl GitCredential { #[must_use] pub fn new(username: impl Into, secret: impl Into) -> Self { Self { username: username.into(), secret: secret.into(), } } } pub async fn mirror_fetch( _label: &str, _dir: &std::path::Path, _url: &str, _credential: Option<&GitCredential>, _timeout_secs: u64, ) -> Result<(), GitError> { Err(GitError::Unimplemented( "mirror fetch is served by KenShell RemoteService", )) }