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