Skip to content

Commit

Permalink
feat: public update_expression methods (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
unvalley authored Jun 4, 2024
1 parent 745cee2 commit 4d1490c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions raiden-derive/src/ops/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ pub(crate) fn expand_update_item(
}

impl #update_expression_name {
fn set(&self, attr: #attr_enum_name) -> ::raiden::update_expression::Set<#attr_enum_name> {
pub fn set(&self, attr: #attr_enum_name) -> ::raiden::update_expression::Set<#attr_enum_name> {
::raiden::update_expression::Set::new(attr)
}

fn add(&self, attr: #attr_enum_name) -> ::raiden::update_expression::Add<#attr_enum_name> {
pub fn add(&self, attr: #attr_enum_name) -> ::raiden::update_expression::Add<#attr_enum_name> {
::raiden::update_expression::Add::new(attr)
}

fn delete(&self, attr: #attr_enum_name) -> ::raiden::update_expression::Delete<#attr_enum_name> {
pub fn delete(&self, attr: #attr_enum_name) -> ::raiden::update_expression::Delete<#attr_enum_name> {
::raiden::update_expression::Delete::new(attr)
}
}
Expand Down

0 comments on commit 4d1490c

Please sign in to comment.