Started moving update tests into lib.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use super::{Query, RequestData};
|
||||
use super::{CalcValue, Query, RequestData};
|
||||
use crate::{message::MessageAction, name::NameType};
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
@@ -28,6 +28,14 @@ impl Update {
|
||||
&mut self.query
|
||||
}
|
||||
|
||||
pub fn add_field<NT, CV>(&mut self, name: NT, field: CV)
|
||||
where
|
||||
CV: Into<CalcValue>,
|
||||
NT: Into<NameType>,
|
||||
{
|
||||
self.values.add_field(name, field);
|
||||
}
|
||||
|
||||
pub fn get_values(&self) -> &RequestData {
|
||||
&self.values
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user