fn tracking_link(&mut self) {
        let carrier = self.carrier.to_lowercase();

        if carrier == "usps" {
            self.tracking_link = format!("https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum={}", self.tracking_number);
        } else if carrier == "ups" {
            self.tracking_link = format!("https://www.ups.com/track?tracknum={}", self.tracking_number);
        } else if carrier == "fedex" {
            self.tracking_link = format!("https://www.fedex.com/apps/fedextrack/?tracknumbers={}", self.tracking_number);
        } else if carrier == "dhl" {
            // TODO: not sure if this one is correct.
            self.tracking_link = format!("https://www.dhl.com/en/express/tracking.html?AWB={}", self.tracking_number);
        }
    }
// Get the tracking link for the provider.
Get the tracking link for the provider.
Get the tracking link for the provider .
fn tracking_link(&mut self) {
        let carrier = self.carrier.to_lowercase();
        if carrier == "usps" {
            self.tracking_link = format!("https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum={}", self.tracking_number);
        } else if carrier == "ups" {
            self.tracking_link = format!("https://www.ups.com/track?tracknum={}", self.tracking_number);
        } else if carrier == "fedex" {
            self.tracking_link = format!("https://www.fedex.com/apps/fedextrack/?tracknumbers={}", self.tracking_number);
        } else if carrier == "dhl" {
            // TODO: not sure if this one is correct.
            self.tracking_link = format!("https://www.dhl.com/en/express/tracking.html?AWB={}", self.tracking_number);
        }
    }
fn tracking_link ( & mut self ) { let carrier = self . carrier . to_lowercase ( ) ; if carrier == " " { self . tracking_link = format ! ( " " self tracking_number ) ; } else if carrier == " " { self . tracking_link = format ! ( " " self tracking_number ) ; } else if carrier == " " { self . tracking_link = format ! ( " " self tracking_number ) ; } else if carrier == " " { // TODO: not sure if this one is correct. self . tracking_link = format ! ( " " self tracking_number ) ; } }
Get the tracking link for the provider.
Get the tracking link for the provider .
&mut self
&mut self