Skip to content

Make Engine without lifetime. #613

@azoyan

Description

@azoyan

I need to store compiled once engines in struct

#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct RateLimitBodyJsonPath {
    pub engines: Vec<RsonpathEngine>,
}

but engine should keep reference with lifetime to query.

Is it possbile to make special Engine that pass query by value once and compile it to engine, and then use just engine to handle incoming json?

Metadata

Metadata

Assignees

Labels

area: libraryImprovements to the library API qualitytype: featureNew feature or request

Type

No type

Projects

Status

Released

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions