use thiserror::Error;
#[macro_export]
macro_rules! builder_setter {
($field_name:ident, $field_type:ty) => {
#[doc = concat!("Sets the value for the ", stringify!($field_name), " field.")]
pub fn $field_name(mut self, value: $field_type) -> Self {
self.$field_name = Some(value);
self
}
};
}
#[derive(Error, Debug, Eq, PartialEq)]
pub enum BasicBuilderError {
#[error("Missing {0}")]
MissingField(&'static str),
}