Moved update into action module.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
This commit is contained in:
@@ -347,31 +347,3 @@ mod documents {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Update {
|
||||
query: Query,
|
||||
values: Document,
|
||||
}
|
||||
|
||||
impl Update {
|
||||
pub fn new(query: Query) -> Self {
|
||||
Self {
|
||||
query: query.into(),
|
||||
values: Document::new(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_query(&self) -> &Query {
|
||||
&self.query
|
||||
}
|
||||
|
||||
pub fn get_values(&self) -> &Document {
|
||||
&self.values
|
||||
}
|
||||
|
||||
pub fn get_values_mut(&mut self) -> &mut Document {
|
||||
&mut self.values
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user