systemprompt_models/
macros.rs1#[macro_export]
2macro_rules! builder_methods {
3 ($( $method:ident ( $field:ident ) -> $ty:ty ),* $(,)?) => {
4 $(
5 pub fn $method(mut self, $field: $ty) -> Self {
6 self.$field = Some($field);
7 self
8 }
9 )*
10 };
11}