pub struct EngineProfileSelectionV1 { /* private fields */ }Expand description
Exact four-field key selecting one revisioned engine profile.
Implementations§
Source§impl EngineProfileSelectionV1
impl EngineProfileSelectionV1
Sourcepub fn new(
family: impl Into<String>,
profile_revision: u32,
engine_version: impl Into<String>,
importer: impl Into<String>,
) -> Result<Self, EngineContractError>
pub fn new( family: impl Into<String>, profile_revision: u32, engine_version: impl Into<String>, importer: impl Into<String>, ) -> Result<Self, EngineContractError>
Construct an exact profile selection.
§Errors
Returns EngineContractError when a retained string is empty or
exceeds the V1 per-string limit.
Sourcepub const fn profile_revision(&self) -> u32
pub const fn profile_revision(&self) -> u32
Exact immutable profile revision.
Sourcepub fn engine_version(&self) -> &str
pub fn engine_version(&self) -> &str
Exact target engine version.
Trait Implementations§
Source§impl Clone for EngineProfileSelectionV1
impl Clone for EngineProfileSelectionV1
Source§fn clone(&self) -> EngineProfileSelectionV1
fn clone(&self) -> EngineProfileSelectionV1
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 EngineProfileSelectionV1
impl Debug for EngineProfileSelectionV1
Source§impl<'de> Deserialize<'de> for EngineProfileSelectionV1
impl<'de> Deserialize<'de> for EngineProfileSelectionV1
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
impl Eq for EngineProfileSelectionV1
Source§impl Ord for EngineProfileSelectionV1
impl Ord for EngineProfileSelectionV1
Source§fn cmp(&self, other: &EngineProfileSelectionV1) -> Ordering
fn cmp(&self, other: &EngineProfileSelectionV1) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EngineProfileSelectionV1
impl PartialEq for EngineProfileSelectionV1
Source§impl PartialOrd for EngineProfileSelectionV1
impl PartialOrd for EngineProfileSelectionV1
Source§impl Serialize for EngineProfileSelectionV1
impl Serialize for EngineProfileSelectionV1
impl StructuralPartialEq for EngineProfileSelectionV1
Auto Trait Implementations§
impl Freeze for EngineProfileSelectionV1
impl RefUnwindSafe for EngineProfileSelectionV1
impl Send for EngineProfileSelectionV1
impl Sync for EngineProfileSelectionV1
impl Unpin for EngineProfileSelectionV1
impl UnsafeUnpin for EngineProfileSelectionV1
impl UnwindSafe for EngineProfileSelectionV1
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