pub struct TypedCompiler<S> {
pub spec: TypedStreamSpec<S>,
/* private fields */
}Fields§
§spec: TypedStreamSpec<S>Implementations§
Source§impl<S> TypedCompiler<S>
impl<S> TypedCompiler<S>
pub fn new(spec: TypedStreamSpec<S>, entity_name: String) -> Self
pub fn with_state_id(self, state_id: u32) -> Self
pub fn compile(&self) -> MultiEntityBytecode
pub fn compile_key_loading( &self, resolution: &KeyResolutionStrategy, key_reg: Register, mappings: &[TypedFieldMapping<S>], ) -> Vec<OpCode>
Sourcepub fn find_inherited_primary_key_transformation(
&self,
) -> Option<Transformation>
pub fn find_inherited_primary_key_transformation( &self, ) -> Option<Transformation>
Look for primary key mappings in other handlers of the same entity This enables cross-handler inheritance of key transformations
Sourcepub fn auto_detect_primary_field(
&self,
current_mappings: &[TypedFieldMapping<S>],
) -> Option<FieldPath>
pub fn auto_detect_primary_field( &self, current_mappings: &[TypedFieldMapping<S>], ) -> Option<FieldPath>
Auto-detect primary field from account schema when no explicit mapping exists This looks for account types that have an ‘authority’ field and tries to use it
Auto Trait Implementations§
impl<S> Freeze for TypedCompiler<S>
impl<S> RefUnwindSafe for TypedCompiler<S>where
S: RefUnwindSafe,
impl<S> Send for TypedCompiler<S>where
S: Send,
impl<S> Sync for TypedCompiler<S>where
S: Sync,
impl<S> Unpin for TypedCompiler<S>where
S: Unpin,
impl<S> UnwindSafe for TypedCompiler<S>where
S: UnwindSafe,
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