Struct linera_version::CrateVersion
source · pub struct CrateVersion {
pub major: u32,
pub minor: u32,
pub patch: u32,
}
Fields§
§major: u32
§minor: u32
§patch: u32
Implementations§
source§impl CrateVersion
impl CrateVersion
sourcepub fn is_compatible_with(&self, other: &CrateVersion) -> bool
pub fn is_compatible_with(&self, other: &CrateVersion) -> bool
Whether this version is known to be API-compatible with other
.
Note that this relation is not symmetric.
Trait Implementations§
source§impl Clone for CrateVersion
impl Clone for CrateVersion
source§fn clone(&self) -> CrateVersion
fn clone(&self) -> CrateVersion
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 CrateVersion
impl Debug for CrateVersion
source§impl<'de> Deserialize<'de> for CrateVersion
impl<'de> Deserialize<'de> for CrateVersion
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<CrateVersion> for Version
impl From<CrateVersion> for Version
source§fn from(_: CrateVersion) -> Self
fn from(_: CrateVersion) -> Self
Converts to this type from the input type.
source§impl From<Version> for CrateVersion
impl From<Version> for CrateVersion
source§impl Hash for CrateVersion
impl Hash for CrateVersion
source§impl InputType for CrateVersion
impl InputType for CrateVersion
§type RawValueType = CrateVersion
type RawValueType = CrateVersion
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 CrateVersion
impl OutputType for CrateVersion
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 CrateVersion
impl PartialEq for CrateVersion
source§fn eq(&self, other: &CrateVersion) -> bool
fn eq(&self, other: &CrateVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ScalarType for CrateVersion
impl ScalarType for CrateVersion
source§impl Serialize for CrateVersion
impl Serialize for CrateVersion
impl Eq for CrateVersion
impl StructuralPartialEq for CrateVersion
Auto Trait Implementations§
impl Freeze for CrateVersion
impl RefUnwindSafe for CrateVersion
impl Send for CrateVersion
impl Sync for CrateVersion
impl Unpin for CrateVersion
impl UnwindSafe for CrateVersion
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.