Skip to content

Commit 33b57f7

Browse files
Nicklas Warming JacobsenBennett Hardwick
authored andcommitted
impl fn PreparedPrimaryKey::new_from_parts(..) -> Self
1 parent 3698c41 commit 33b57f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/crypto/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ impl PreparedPrimaryKey {
122122
.into()
123123
.into_parts(&R::type_name(), R::sort_key_prefix().as_deref());
124124

125+
Self::new_from_parts::<R>(primary_key_parts)
126+
}
127+
128+
pub fn new_from_parts<R>(primary_key_parts: PrimaryKeyParts) -> Self
129+
where
130+
R: Identifiable,
131+
{
125132
Self {
126133
primary_key_parts,
127134
is_pk_encrypted: R::is_pk_encrypted(),

0 commit comments

Comments
 (0)