Skip to main content

systemprompt_models/
macros.rs

1#[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}