Get the hash display length based on settings. # Returns The number of characters to display for hashes.
(&self)
| 219 | /// |
| 220 | /// The number of characters to display for hashes. |
| 221 | pub(crate) fn get_hash_length(&self) -> usize { |
| 222 | if self.full_hash { |
| 223 | 52 // Full Base32 hash length |
| 224 | } else { |
| 225 | DEFAULT_HASH_LENGTH |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | /// Format entries for default output. |
| 230 | /// |