pub struct RuntimeInfo {
pub name: String,
pub version: String,
pub phase: String,
pub brand_line: String,
pub license: String,
pub homepage: String,
pub repository: String,
pub funding_url: String,
pub affiliation: String,
}Expand description
Embedder-facing about / identity block (version, phase, brand, funding).
Fields§
§name: StringProduct name.
version: StringRuntime crate version (same workspace semver).
phase: StringPhase marker.
brand_line: StringBrand line.
license: StringSPDX license.
homepage: StringHomepage.
repository: StringRepository URL.
funding_url: StringFunding / thanks.dev URL.
affiliation: StringAffiliation disclaimer.
Implementations§
Source§impl RuntimeInfo
impl RuntimeInfo
Sourcepub fn to_json_pretty(&self) -> Result<String>
pub fn to_json_pretty(&self) -> Result<String>
Pretty JSON for tooling.
Trait Implementations§
Source§impl Clone for RuntimeInfo
impl Clone for RuntimeInfo
Source§fn clone(&self) -> RuntimeInfo
fn clone(&self) -> RuntimeInfo
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 RuntimeInfo
impl Debug for RuntimeInfo
Source§impl<'de> Deserialize<'de> for RuntimeInfo
impl<'de> Deserialize<'de> for RuntimeInfo
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 RuntimeInfo
impl RefUnwindSafe for RuntimeInfo
impl Send for RuntimeInfo
impl Sync for RuntimeInfo
impl Unpin for RuntimeInfo
impl UnsafeUnpin for RuntimeInfo
impl UnwindSafe for RuntimeInfo
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