Struct relay_event_schema::protocol::LinuxDistribution
source · pub struct LinuxDistribution {
pub name: Annotated<String>,
pub version: Annotated<String>,
pub pretty_name: Annotated<String>,
pub other: Object<Value>,
}
Expand description
Metadata for the Linux Distribution.
Fields§
§name: Annotated<String>
An index-able name that is stable for each distribution.
version: Annotated<String>
The version of the distribution (missing in distributions with solely rolling release).
pretty_name: Annotated<String>
A full rendering of name + version + release name (not available in all distributions).
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
source§impl Clone for LinuxDistribution
impl Clone for LinuxDistribution
source§fn clone(&self) -> LinuxDistribution
fn clone(&self) -> LinuxDistribution
Returns a copy 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 LinuxDistribution
impl Debug for LinuxDistribution
source§impl Default for LinuxDistribution
impl Default for LinuxDistribution
source§fn default() -> LinuxDistribution
fn default() -> LinuxDistribution
Returns the “default value” for a type. Read more
source§impl Empty for LinuxDistribution
impl Empty for LinuxDistribution
source§impl FromValue for LinuxDistribution
impl FromValue for LinuxDistribution
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
source§impl IntoValue for LinuxDistribution
impl IntoValue for LinuxDistribution
source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
source§impl PartialEq for LinuxDistribution
impl PartialEq for LinuxDistribution
source§impl ProcessValue for LinuxDistribution
impl ProcessValue for LinuxDistribution
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for LinuxDistribution
Auto Trait Implementations§
impl Freeze for LinuxDistribution
impl RefUnwindSafe for LinuxDistribution
impl Send for LinuxDistribution
impl Sync for LinuxDistribution
impl Unpin for LinuxDistribution
impl UnwindSafe for LinuxDistribution
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)