#[non_exhaustive]pub struct RejectedKey {
pub key: RejectedKeyKey,
pub reason: RejectedKeyReason,
}Available on crate feature
config only.Expand description
A key a patch declined to apply, with the reason.
JSON schema
{
"title": "RejectedKey",
"description": "A key a patch declined to apply, with the reason.",
"type": "object",
"required": [
"key",
"reason"
],
"properties": {
"key": {
"type": "string",
"minLength": 1
},
"reason": {
"description": "Why the key was rejected — unknown key, wrong type, out-of-range, allowlist mismatch, etc.",
"type": "string",
"maxLength": 1024,
"minLength": 1
}
},
"additionalProperties": false,
"$anchor": "rejectedKey"
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: RejectedKeyKey§reason: RejectedKeyReasonWhy the key was rejected — unknown key, wrong type, out-of-range, allowlist mismatch, etc.
Implementations§
Source§impl RejectedKey
impl RejectedKey
pub fn builder() -> RejectedKey
Trait Implementations§
Source§impl Clone for RejectedKey
impl Clone for RejectedKey
Source§fn clone(&self) -> RejectedKey
fn clone(&self) -> RejectedKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RejectedKey
impl Debug for RejectedKey
Source§impl<'de> Deserialize<'de> for RejectedKey
impl<'de> Deserialize<'de> for RejectedKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RejectedKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RejectedKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RejectedKey> for RejectedKey
impl From<RejectedKey> for RejectedKey
Source§fn from(value: RejectedKey) -> RejectedKey
fn from(value: RejectedKey) -> RejectedKey
Converts to this type from the input type.
Source§impl Serialize for RejectedKey
impl Serialize for RejectedKey
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<RejectedKey> for RejectedKey
impl TryFrom<RejectedKey> for RejectedKey
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: RejectedKey) -> Result<RejectedKey, ConversionError>
fn try_from(value: RejectedKey) -> Result<RejectedKey, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RejectedKey
impl RefUnwindSafe for RejectedKey
impl Send for RejectedKey
impl Sync for RejectedKey
impl Unpin for RejectedKey
impl UnsafeUnpin for RejectedKey
impl UnwindSafe for RejectedKey
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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>
Wrap the input message
T in a tonic::RequestSource§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.