pub struct CrossProviderMapping {
pub source_schema: String,
pub source_field: String,
pub target_schema: String,
pub target_field: String,
pub transform: Option<FieldTransform>,
pub confidence: f64,
pub semantic_tag: String,
}Expand description
A mapping between fields in two different provider schemas.
Used to translate data between providers (e.g., migrating sessions from Copilot to Cursor, or merging sessions from multiple providers).
Fields§
§source_schema: StringSource schema version ID
source_field: StringSource field path (dot-separated, e.g., “session.creationDate”)
target_schema: StringTarget schema version ID
target_field: StringTarget field path
transform: Option<FieldTransform>Transformation required (if any)
confidence: f64Confidence level (0.0 – 1.0)
semantic_tag: StringSemantic tag that links these fields
Trait Implementations§
Source§impl Clone for CrossProviderMapping
impl Clone for CrossProviderMapping
Source§fn clone(&self) -> CrossProviderMapping
fn clone(&self) -> CrossProviderMapping
Returns a duplicate 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 CrossProviderMapping
impl Debug for CrossProviderMapping
Source§impl<'de> Deserialize<'de> for CrossProviderMapping
impl<'de> Deserialize<'de> for CrossProviderMapping
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
Auto Trait Implementations§
impl Freeze for CrossProviderMapping
impl RefUnwindSafe for CrossProviderMapping
impl Send for CrossProviderMapping
impl Sync for CrossProviderMapping
impl Unpin for CrossProviderMapping
impl UnsafeUnpin for CrossProviderMapping
impl UnwindSafe for CrossProviderMapping
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more