pub struct EnginePrimarySourceV1 { /* private fields */ }Expand description
One primary source retained by an immutable profile record.
Implementations§
Source§impl EnginePrimarySourceV1
impl EnginePrimarySourceV1
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<EngineFactIdV1>,
supported_setting_ids: Vec<EngineSettingIdV1>,
) -> 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<EngineFactIdV1>, supported_setting_ids: Vec<EngineSettingIdV1>, ) -> Result<Self, EngineContractError>
Construct one primary-source row, canonicalizing its supported-id sets.
§Errors
Returns EngineContractError for empty or oversized text, oversized
id sets, or duplicate supported ids.
Sourcepub fn target_version(&self) -> &str
pub fn target_version(&self) -> &str
Source target version.
Sourcepub fn verified_on(&self) -> &str
pub fn verified_on(&self) -> &str
ISO verification date.
Sourcepub fn supported_fact_ids(&self) -> &[EngineFactIdV1]
pub fn supported_fact_ids(&self) -> &[EngineFactIdV1]
Stable fact ids supported by this source.
Sourcepub fn supported_setting_ids(&self) -> &[EngineSettingIdV1]
pub fn supported_setting_ids(&self) -> &[EngineSettingIdV1]
Stable setting ids supported by this source.
Trait Implementations§
Source§impl Clone for EnginePrimarySourceV1
impl Clone for EnginePrimarySourceV1
Source§fn clone(&self) -> EnginePrimarySourceV1
fn clone(&self) -> EnginePrimarySourceV1
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 EnginePrimarySourceV1
impl Debug for EnginePrimarySourceV1
Source§impl<'de> Deserialize<'de> for EnginePrimarySourceV1
impl<'de> Deserialize<'de> for EnginePrimarySourceV1
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 EnginePrimarySourceV1
Source§impl Ord for EnginePrimarySourceV1
impl Ord for EnginePrimarySourceV1
Source§fn cmp(&self, other: &EnginePrimarySourceV1) -> Ordering
fn cmp(&self, other: &EnginePrimarySourceV1) -> 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 EnginePrimarySourceV1
impl PartialEq for EnginePrimarySourceV1
Source§impl PartialOrd for EnginePrimarySourceV1
impl PartialOrd for EnginePrimarySourceV1
Source§impl Serialize for EnginePrimarySourceV1
impl Serialize for EnginePrimarySourceV1
impl StructuralPartialEq for EnginePrimarySourceV1
Auto Trait Implementations§
impl Freeze for EnginePrimarySourceV1
impl RefUnwindSafe for EnginePrimarySourceV1
impl Send for EnginePrimarySourceV1
impl Sync for EnginePrimarySourceV1
impl Unpin for EnginePrimarySourceV1
impl UnsafeUnpin for EnginePrimarySourceV1
impl UnwindSafe for EnginePrimarySourceV1
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