pub struct EnginePrimarySourceV2 { /* private fields */ }Expand description
One primary source for V2 facts and settings.
Implementations§
Source§impl EnginePrimarySourceV2
impl EnginePrimarySourceV2
Sourcepub fn new(
id: impl Into<String>,
target_version: impl Into<String>,
url: impl Into<String>,
verified_on: impl Into<String>,
supported_fact_ids: Vec<EngineFactIdV2>,
supported_setting_ids: Vec<EngineSettingIdV2>,
) -> Result<Self, EngineContractError>
pub fn new( id: impl Into<String>, target_version: impl Into<String>, url: impl Into<String>, verified_on: impl Into<String>, supported_fact_ids: Vec<EngineFactIdV2>, supported_setting_ids: Vec<EngineSettingIdV2>, ) -> Result<Self, EngineContractError>
Construct one primary-source support row.
Sourcepub fn supported_fact_ids(&self) -> &[EngineFactIdV2]
pub fn supported_fact_ids(&self) -> &[EngineFactIdV2]
Fact ids supported by this source.
Sourcepub fn supported_setting_ids(&self) -> &[EngineSettingIdV2]
pub fn supported_setting_ids(&self) -> &[EngineSettingIdV2]
Setting ids supported by this source.
Trait Implementations§
Source§impl Clone for EnginePrimarySourceV2
impl Clone for EnginePrimarySourceV2
Source§fn clone(&self) -> EnginePrimarySourceV2
fn clone(&self) -> EnginePrimarySourceV2
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 EnginePrimarySourceV2
impl Debug for EnginePrimarySourceV2
Source§impl<'de> Deserialize<'de> for EnginePrimarySourceV2
impl<'de> Deserialize<'de> for EnginePrimarySourceV2
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 EnginePrimarySourceV2
Source§impl Ord for EnginePrimarySourceV2
impl Ord for EnginePrimarySourceV2
Source§fn cmp(&self, other: &EnginePrimarySourceV2) -> Ordering
fn cmp(&self, other: &EnginePrimarySourceV2) -> 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 EnginePrimarySourceV2
impl PartialEq for EnginePrimarySourceV2
Source§impl PartialOrd for EnginePrimarySourceV2
impl PartialOrd for EnginePrimarySourceV2
Source§impl Serialize for EnginePrimarySourceV2
impl Serialize for EnginePrimarySourceV2
impl StructuralPartialEq for EnginePrimarySourceV2
Auto Trait Implementations§
impl Freeze for EnginePrimarySourceV2
impl RefUnwindSafe for EnginePrimarySourceV2
impl Send for EnginePrimarySourceV2
impl Sync for EnginePrimarySourceV2
impl Unpin for EnginePrimarySourceV2
impl UnsafeUnpin for EnginePrimarySourceV2
impl UnwindSafe for EnginePrimarySourceV2
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