pub struct BevyPredictionReferenceV1 { /* private fields */ }Expand description
Exact V2 document identity plus its canonical V4 provenance header.
Implementations§
Source§impl BevyPredictionReferenceV1
impl BevyPredictionReferenceV1
Sourcepub fn new(
prediction_input: InputIdentity,
provenance_schema: String,
provenance_identity: InputIdentity,
) -> Self
pub fn new( prediction_input: InputIdentity, provenance_schema: String, provenance_identity: InputIdentity, ) -> Self
Construct an identity-only reference; settings and source facts remain in V2.
Sourcepub const fn prediction_input(&self) -> &InputIdentity
pub const fn prediction_input(&self) -> &InputIdentity
Exact V2 document bytes.
Sourcepub fn provenance_schema(&self) -> &str
pub fn provenance_schema(&self) -> &str
V4 provenance schema identifier.
Sourcepub const fn provenance_identity(&self) -> &InputIdentity
pub const fn provenance_identity(&self) -> &InputIdentity
Canonical V4 provenance identity.
Trait Implementations§
Source§impl Clone for BevyPredictionReferenceV1
impl Clone for BevyPredictionReferenceV1
Source§fn clone(&self) -> BevyPredictionReferenceV1
fn clone(&self) -> BevyPredictionReferenceV1
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 BevyPredictionReferenceV1
impl Debug for BevyPredictionReferenceV1
Source§impl<'de> Deserialize<'de> for BevyPredictionReferenceV1
impl<'de> Deserialize<'de> for BevyPredictionReferenceV1
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 BevyPredictionReferenceV1
impl StructuralPartialEq for BevyPredictionReferenceV1
Auto Trait Implementations§
impl Freeze for BevyPredictionReferenceV1
impl RefUnwindSafe for BevyPredictionReferenceV1
impl Send for BevyPredictionReferenceV1
impl Sync for BevyPredictionReferenceV1
impl Unpin for BevyPredictionReferenceV1
impl UnsafeUnpin for BevyPredictionReferenceV1
impl UnwindSafe for BevyPredictionReferenceV1
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