pub fn readme_location(&self, crate_name: &str, version: &str) -> String {
        match *self {
            Uploader::S3 {
                ref bucket,
                ref cdn,
                ..
            } => {
                let host = match *cdn {
                    Some(ref s) => s.clone(),
                    None => bucket.host(),
                };
                let path = Uploader::readme_path(crate_name, version);
                format!("https://{}/{}", host, path)
            }
            Uploader::Local => format!("/{}", Uploader::readme_path(crate_name, version)),
        }
    }
/// Returns the URL of an uploaded crate's version readme.
///
/// The function doesn't check for the existence of the file.
Returns the URL of an uploaded crate's version readme.
The function doesn't check for the existence of the file.
Returns the URL of an uploaded crate ' s version readme . The function doesn ' t check for the existence of the file .
pub fn readme_location(&self, crate_name: &str, version: &str) -> String {
        match *self {
            Uploader::S3 {
                ref bucket,
                ref cdn,
                ..
            } => {
                let host = match *cdn {
                    Some(ref s) => s.clone(),
                    None => bucket.host(),
                };
                let path = Uploader::readme_path(crate_name, version);
                format!("https://{}/{}", host, path)
            }
            Uploader::Local => format!("/{}", Uploader::readme_path(crate_name, version)),
        }
    }
pub fn readme_location ( & self , crate_name : & str , version : & str ) -> String { match * self { Uploader :: S3 { ref bucket , ref cdn , .. } => { let host = match * cdn { Some ( ref s ) => s . clone ( ) , None => bucket . host ( ) , } ; let path = Uploader :: readme_path ( crate_name , version ) ; format ! ( " " host path ) } Uploader :: Local => format ! ( " " Uploader readme_path ( crate_name version ) ) , } }
Returns the URL of an uploaded crate's version readme.
Returns the URL of an uploaded crate ' s version readme .
&self
crate_name
&str
version
&str