#[repr(i32)]pub enum HashType {
UnknownHash = 0,
Sha1 = 1,
Sha384 = 2,
Sha256 = 3,
Sha512 = 4,
Sha224 = 5,
}
Variants§
UnknownHash = 0
Sha1 = 1
Using SHA1 for digital signature is deprecated but HMAC-SHA1 is
Sha384 = 2
fine.
Sha256 = 3
Sha512 = 4
Sha224 = 5
Implementations§
Source§impl HashType
impl HashType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for HashType
impl Ord for HashType
Source§impl PartialOrd for HashType
impl PartialOrd for HashType
impl Copy for HashType
impl Eq for HashType
impl StructuralPartialEq for HashType
Auto Trait Implementations§
impl Freeze for HashType
impl RefUnwindSafe for HashType
impl Send for HashType
impl Sync for HashType
impl Unpin for HashType
impl UnwindSafe for HashType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more