pub(crate) struct ChangeIdWrapper {
pub(crate) inner: Option<usize>,
}
Expand description
Since we use #[serde(deny_unknown_fields)]
on TomlConfig
, we need a wrapper type
for the “change-id” field to parse it even if other fields are invalid. This ensures
that if deserialization fails due to other fields, we can still provide the changelogs
to allow developers to potentially find the reason for the failure in the logs..
Fields§
§inner: Option<usize>
Trait Implementations§
Source§impl Default for ChangeIdWrapper
impl Default for ChangeIdWrapper
Source§fn default() -> ChangeIdWrapper
fn default() -> ChangeIdWrapper
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChangeIdWrapper
impl<'de> Deserialize<'de> for ChangeIdWrapper
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChangeIdWrapper
impl RefUnwindSafe for ChangeIdWrapper
impl Send for ChangeIdWrapper
impl Sync for ChangeIdWrapper
impl Unpin for ChangeIdWrapper
impl UnwindSafe for ChangeIdWrapper
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
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes