pub struct Mirror {
pub name: String,
pub platform: String,
pub account_type: AccountType,
pub account_name: String,
pub repo_name: String,
pub url: String,
pub protocol: Protocol,
pub mirror_type: MirrorType,
pub enabled: bool,
}Fields§
§name: String§platform: String§account_type: AccountType§account_name: String§repo_name: String§url: String§protocol: Protocol§mirror_type: MirrorType§enabled: boolImplementations§
Source§impl Mirror
impl Mirror
Sourcepub fn generate_url(
platform: &str,
_account_type: &AccountType,
account_name: &str,
repo_name: &str,
protocol: &Protocol,
) -> String
pub fn generate_url( platform: &str, _account_type: &AccountType, account_name: &str, repo_name: &str, protocol: &Protocol, ) -> String
Generate URL based on platform, account info, and protocol
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Get display name for the mirror
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mirror
impl<'de> Deserialize<'de> for Mirror
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 Mirror
impl RefUnwindSafe for Mirror
impl Send for Mirror
impl Sync for Mirror
impl Unpin for Mirror
impl UnsafeUnpin for Mirror
impl UnwindSafe for Mirror
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