pub fn hostname(&self) -> String {
        // hostname may be already set by an endpoint prefix
        match self.hostname {
            Some(ref h) => h.to_string(),
            None => build_hostname(&self.service, &self.region),
        }
    }
Converts hostname to String if it exists, else it invokes build_hostname()
rusoto/signature/src/signature.rs