Enum google_api_proto::google::cloud::domains::v1beta1::dns_settings::ds_record::Algorithm
source · #[repr(i32)]pub enum Algorithm {
Show 18 variants
Unspecified = 0,
Rsamd5 = 1,
Dh = 2,
Dsa = 3,
Ecc = 4,
Rsasha1 = 5,
Dsansec3sha1 = 6,
Rsasha1nsec3sha1 = 7,
Rsasha256 = 8,
Rsasha512 = 10,
Eccgost = 12,
Ecdsap256sha256 = 13,
Ecdsap384sha384 = 14,
Ed25519 = 15,
Ed448 = 16,
Indirect = 252,
Privatedns = 253,
Privateoid = 254,
}
Expand description
List of algorithms used to create a DNSKEY. Certain algorithms are not supported for particular domains.
Variants§
Unspecified = 0
The algorithm is unspecified.
Rsamd5 = 1
RSA/MD5. Cannot be used for new deployments.
Dh = 2
Diffie-Hellman. Cannot be used for new deployments.
Dsa = 3
DSA/SHA1. Not recommended for new deployments.
Ecc = 4
ECC. Not recommended for new deployments.
Rsasha1 = 5
RSA/SHA-1. Not recommended for new deployments.
Dsansec3sha1 = 6
DSA-NSEC3-SHA1. Not recommended for new deployments.
Rsasha1nsec3sha1 = 7
RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments.
Rsasha256 = 8
RSA/SHA-256.
Rsasha512 = 10
RSA/SHA-512.
Eccgost = 12
GOST R 34.10-2001.
Ecdsap256sha256 = 13
ECDSA Curve P-256 with SHA-256.
Ecdsap384sha384 = 14
ECDSA Curve P-384 with SHA-384.
Ed25519 = 15
Ed25519.
Ed448 = 16
Ed448.
Indirect = 252
Reserved for Indirect Keys. Cannot be used for new deployments.
Privatedns = 253
Private algorithm. Cannot be used for new deployments.
Privateoid = 254
Private algorithm OID. Cannot be used for new deployments.
Implementations§
source§impl Algorithm
impl Algorithm
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 Algorithm
impl Ord for Algorithm
source§impl PartialEq for Algorithm
impl PartialEq for Algorithm
source§impl PartialOrd for Algorithm
impl PartialOrd for Algorithm
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Algorithm
impl TryFrom<i32> for Algorithm
§type Error = DecodeError
type Error = DecodeError
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request