Skip to content

Conversation

PipelineBaron
Copy link

Similar in spirit and implementation to how serde supports borrowed deserialization lifetimes. Like serde, it uses 'de as the lifetime of the trait (FromSql<'de>) and it adds all borrowed liftimes as lifetime bounds on 'de.

Also like serde all top level references automatically have their lifetimes borrowed, but container types carrying references must explicity be borrowed with the #[postgres(borrow)] annotation.

Follows up on: #574

Similar in spirit and implementation to how `serde` supports borrowed
deserialization lifetimes. Like `serde`, it uses `'de` as the lifetime
of the trait (`FromoSql<'de>`) and it adds all borrowed liftimes as
lifetime bounds on `'de`.

Also like `serde` all top level references automatically have their
lifetimes borrowed, but container types carrying references must
explicity be borrowed with the `#[postgres(borrow)]` annotation.
@PipelineBaron
Copy link
Author

Can anyone w/ maintainer privileges please kick off the test workflow 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants