Enum dgc::TrustListFromJsonError [−][src]
pub enum TrustListFromJsonError {
Show 15 variants
InvalidRootType,
KeyIsNotObject(String),
MissingPublicKeyAlgorithm(String),
InvalidPublicKeyAlgorithm(String),
MissingPublicKeyAlgorithmName(String),
InvalidPublicKeyAlgorithmName(String),
UnsupportedPublicKeyAlgorithmName(String, String),
MissingPublicKeyAlgorithmCurve(String),
InvalidPublicKeyAlgorithmCurve(String),
UnsupportedPublicKeyAlgorithmCurve(String, String),
MissingPublicKeyPem(String),
InvalidPublicKeyPem(String),
PublicKeyPemDecodeError(String, DecodeError),
KidBase64DecodeError(String, DecodeError),
KeyParseError(String, KeyParseError),
}
Expand description
Error struct that represents all the possible errors that can occur while trying to create a trustlist from a given JSON payload.
Variants
InvalidRootType
The given JSON is not an object
KeyIsNotObject(String)
Tuple Fields
0: String
The given key is not associated to an object
MissingPublicKeyAlgorithm(String)
Tuple Fields
0: String
A given key does not specify a public key algorithm
InvalidPublicKeyAlgorithm(String)
Tuple Fields
0: String
A given key does not specifies the public key algorithm as a string
MissingPublicKeyAlgorithmName(String)
Tuple Fields
0: String
A given key does not specify the name of the public key algorithm
InvalidPublicKeyAlgorithmName(String)
Tuple Fields
0: String
A given key does not specifies the public key algorithm name as a string
UnsupportedPublicKeyAlgorithmName(String, String)
A given key specifies a public key algorithm name that is not supported
MissingPublicKeyAlgorithmCurve(String)
Tuple Fields
0: String
A given key does not contain ‘publicKeyAlgorithm.namedCurve’
InvalidPublicKeyAlgorithmCurve(String)
Tuple Fields
0: String
A given key does not express ‘publicKeyAlgorithm.namedCurve’ as a string
UnsupportedPublicKeyAlgorithmCurve(String, String)
A given key is using a ‘publicKeyAlgorithm.namedCurve’ that is not supported
MissingPublicKeyPem(String)
Tuple Fields
0: String
A given key does not contain ‘publicKeyPem’
InvalidPublicKeyPem(String)
Tuple Fields
0: String
A given key does not express ‘publicKeyPem’ as a string
PublicKeyPemDecodeError(String, DecodeError)
A given key have a ‘publicKeyPem’ which cannot be correctly decoded using base64
KidBase64DecodeError(String, DecodeError)
The kid of a given key could not be decoded using base64
KeyParseError(String, KeyParseError)
A given key provided a public key that could not be parsed