Get the hash display length based on settings. # Returns The number of characters to display for hashes.
(&self)
| 240 | /// |
| 241 | /// The number of characters to display for hashes. |
| 242 | pub(crate) fn get_hash_length(&self) -> usize { |
| 243 | if self.full_hash { |
| 244 | 52 // Full Base32 hash length |
| 245 | } else { |
| 246 | DEFAULT_HASH_LENGTH |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | /// Format entries for default output. |
| 251 | /// |