♻️ Migra #[builder_fn] a #[builder_impl]

Sustituye las ~400 anotaciones `#[builder_fn]` método a método por un
único `#[builder_impl]` por `impl`/`trait`, en 74 ficheros de pagetop y
sus extensiones (admin, bootsier, menu, user).
This commit is contained in:
Manuel Cillero 2026-08-29 19:25:58 +02:00
parent c34dc02357
commit 1be3d88888
74 changed files with 104 additions and 394 deletions

View file

@ -61,28 +61,25 @@ impl Component for RolePermissionsForm {
}
}
#[builder_impl]
impl RolePermissionsForm {
// **< RolePermissionsForm BUILDER >************************************************************
#[builder_fn]
pub(crate) fn with_role_id(mut self, role_id: i32) -> Self {
self.role_id = role_id;
self
}
#[builder_fn]
pub(crate) fn with_error(mut self, error: impl Into<Option<Lc>>) -> Self {
self.error = error.into();
self
}
#[builder_fn]
pub(crate) fn with_groups(mut self, groups: PermissionGroups) -> Self {
self.groups = groups;
self
}
#[builder_fn]
pub(crate) fn with_waypoint(mut self, waypoint: impl Into<Waypoint>) -> Self {
self.waypoint = waypoint.into();
self