#[non_exhaustive]pub struct ConfigGetReply {
pub active: Option<ConfigView>,
pub pending: Option<ConfigView>,
/* private fields */
}Expand description
Active and optional pending views. Apply pending before ACKing it; retain
active for recovery. A module with no approved configuration is refused
with crate::error_codes::CONFIG_GATED, never given empty file bytes.
active: null is permitted when a first delivery has no prior active view.
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.active: Option<ConfigView>§pending: Option<ConfigView>Implementations§
Source§impl ConfigGetReply
impl ConfigGetReply
pub fn new(active: Option<ConfigView>, pending: Option<ConfigView>) -> Self
Trait Implementations§
Source§impl Clone for ConfigGetReply
impl Clone for ConfigGetReply
Source§impl Debug for ConfigGetReply
impl Debug for ConfigGetReply
Source§impl<'de> Deserialize<'de> for ConfigGetReply
impl<'de> Deserialize<'de> for ConfigGetReply
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
Source§impl PartialEq for ConfigGetReply
impl PartialEq for ConfigGetReply
Source§impl Serialize for ConfigGetReply
impl Serialize for ConfigGetReply
impl StructuralPartialEq for ConfigGetReply
Auto Trait Implementations§
impl Forget for ConfigGetReply
impl Freeze for ConfigGetReply
impl Move for ConfigGetReply
impl RefUnwindSafe for ConfigGetReply
impl Send for ConfigGetReply
impl Sync for ConfigGetReply
impl Unpin for ConfigGetReply
impl UnsafeUnpin for ConfigGetReply
impl UnwindSafe for ConfigGetReply
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