pub struct ConfigEnvelope {
pub config: Config,
pub generation: u64,
pub realm_id: Option<String>,
pub instance_id: Option<String>,
pub backend: Option<String>,
pub resolved_paths: Option<ConfigResolvedPaths>,
}Expand description
Wire envelope returned by config APIs across surfaces.
Fields§
§config: Config§generation: u64§realm_id: Option<String>§instance_id: Option<String>§backend: Option<String>§resolved_paths: Option<ConfigResolvedPaths>Implementations§
Source§impl ConfigEnvelope
impl ConfigEnvelope
pub fn from_snapshot( snapshot: ConfigSnapshot, policy: ConfigEnvelopePolicy, ) -> Self
Trait Implementations§
Source§impl Clone for ConfigEnvelope
impl Clone for ConfigEnvelope
Source§fn clone(&self) -> ConfigEnvelope
fn clone(&self) -> ConfigEnvelope
Returns a duplicate of the value. Read more
1.0.0 · 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 ConfigEnvelope
impl Debug for ConfigEnvelope
Source§impl<'de> Deserialize<'de> for ConfigEnvelope
impl<'de> Deserialize<'de> for ConfigEnvelope
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 From<ConfigSnapshot> for ConfigEnvelope
impl From<ConfigSnapshot> for ConfigEnvelope
Source§fn from(snapshot: ConfigSnapshot) -> Self
fn from(snapshot: ConfigSnapshot) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigEnvelope
impl RefUnwindSafe for ConfigEnvelope
impl Send for ConfigEnvelope
impl Sync for ConfigEnvelope
impl Unpin for ConfigEnvelope
impl UnsafeUnpin for ConfigEnvelope
impl UnwindSafe for ConfigEnvelope
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