pub fn title(&self) -> String {
        if let Some(model) = self.battery.model() {
            trace!("View is going to use battery model as a tab title: {}", model);
            return model.to_string();
        }

        if let Some(vendor) = self.battery.vendor() {
            trace!("View is going to use battery vendor as a tab title: {}", vendor);
            return vendor.to_string();
        }

        if let Some(sn) = self.battery.serial_number() {
            trace!("View is going to use battery S/N as a tab title: {}", sn);
            return sn.to_string();
        }

        warn!("View is unable to determine proper tab title, falling back to unknown");
        "Unknown battery".to_string()
    }
Return view title used in a tab header
src/app/ui/view.rs