INNER CODE UNIT · Rust

short_path_as_str

szabodanika/microbin · src/args.rs:172

    pub fn short_path_as_str(&self) -> String {
        if self.short_path.is_some() {
            self.short_path.as_ref().unwrap().to_string()
        } else if self.public_path.is_some() {
            self.public_path.as_ref().unwrap().to_string()
        } else {
            String::from("")
        }
    }

    pub fn max_expiry_index(&self) -> usize {
        let options = &[
            "1min",
            "10min",
            "1hour",
            "24hour",
            "3days",
            "1week",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…