()
| 31 | |
| 32 | impl ProjectId { |
| 33 | pub fn generate() -> Self { |
| 34 | let mut bytes = [0; 32]; |
| 35 | rand::rngs::OsRng.fill_bytes(&mut bytes); |
| 36 | Self(bytes) |
| 37 | } |
| 38 | pub fn from_base32(s: &str) -> Result<Self, ProjectIdError> { |
| 39 | strict_base32(s).map(Self) |
| 40 | } |
nothing calls this directly
no outgoing calls
no test coverage detected