You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: browser_table.rs
    path of file: ./repos/anki/rslib/src/search/service
    
    the code of the file until where you have to start completion: // Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html

use std::str::FromStr;

use anki_i18n::I18n;

use crate::browser_table;

impl browser_table::Column {
    pub 
    
    pub fn to_pb_column(self, i18n: &I18n) -> anki_proto::search::browser_columns::Column {
        anki_proto::search::browser_columns::Column {
            key: self.to_string(),
            cards_mode_label: self.cards_mode_label(i18n),
            notes_mode_label: self.notes_mode_label(i18n),
            sorting_cards: self.default_cards_order() as i32,
            sorting_notes: self.default_notes_order() as i32,
            uses_cell_font: self.uses_cell_font(),
            alignment: self.alignment() as i32,
            cards_mode_tooltip: self.cards_mode_tooltip(i18n),
            notes_mode_tooltip: self.notes_mode_tooltip(i18n),
        }
    }