Struct linera_version::VersionInfo
source · pub struct VersionInfo {
pub crate_version: Pretty<CrateVersion, Version>,
pub git_commit: Hash,
pub git_dirty: bool,
pub rpc_hash: Hash,
pub graphql_hash: Hash,
pub wit_hash: Hash,
}
Expand description
The version info of a build of Linera.
Fields§
§crate_version: Pretty<CrateVersion, Version>
The crate version
git_commit: Hash
The git commit hash
git_dirty: bool
Whether the git checkout was dirty
rpc_hash: Hash
A hash of the RPC API
graphql_hash: Hash
A hash of the GraphQL API
wit_hash: Hash
A hash of the WIT API
Implementations§
source§impl VersionInfo
impl VersionInfo
source§impl VersionInfo
impl VersionInfo
sourcepub fn default_clap_str() -> &'static str
pub fn default_clap_str() -> &'static str
A static string corresponding to VersionInfo::default().to_string()
preceded by
a newline. The newline is meant for clap
as in #[command(version = linera_version::VersionInfo::default_clap_str())]
sourcepub fn is_compatible_with(&self, other: &VersionInfo) -> bool
pub fn is_compatible_with(&self, other: &VersionInfo) -> bool
Whether this version is known to be (remote!) API-compatible with other
.
Note that this relation is not symmetric.
It also may give false negatives.
Trait Implementations§
source§impl Clone for VersionInfo
impl Clone for VersionInfo
source§fn clone(&self) -> VersionInfo
fn clone(&self) -> VersionInfo
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 VersionInfo
impl Debug for VersionInfo
source§impl Default for VersionInfo
impl Default for VersionInfo
source§impl<'de> Deserialize<'de> for VersionInfo
impl<'de> Deserialize<'de> for VersionInfo
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 Display for VersionInfo
impl Display for VersionInfo
source§impl Hash for VersionInfo
impl Hash for VersionInfo
source§impl InputType for VersionInfo
impl InputType for VersionInfo
§type RawValueType = VersionInfo
type RawValueType = VersionInfo
The raw type used for validator. Read more
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value
. None represents undefined.source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl OutputType for VersionInfo
impl OutputType for VersionInfo
source§fn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
source§async fn resolve(
&self,
_: &ContextSelectionSet<'_>,
_field: &Positioned<Field>,
) -> ServerResult<Value>
async fn resolve( &self, _: &ContextSelectionSet<'_>, _field: &Positioned<Field>, ) -> ServerResult<Value>
Resolve an output value to
async_graphql::Value
.source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
source§impl PartialEq for VersionInfo
impl PartialEq for VersionInfo
source§fn eq(&self, other: &VersionInfo) -> bool
fn eq(&self, other: &VersionInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ScalarType for VersionInfo
impl ScalarType for VersionInfo
source§impl Serialize for VersionInfo
impl Serialize for VersionInfo
impl Eq for VersionInfo
impl StructuralPartialEq for VersionInfo
Auto Trait Implementations§
impl Freeze for VersionInfo
impl RefUnwindSafe for VersionInfo
impl Send for VersionInfo
impl Sync for VersionInfo
impl Unpin for VersionInfo
impl UnwindSafe for VersionInfo
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.