use crate::{Result, Rudof, api::prefixes::PrefixesOperations};
pub struct RemovePrefixBuilder<'a> {
rudof: &'a mut Rudof,
alias: &'a str,
}
impl<'a> RemovePrefixBuilder<'a> {
pub(crate) fn new(rudof: &'a mut Rudof, alias: &'a str) -> Self {
Self { rudof, alias }
}
pub fn execute(self) -> Result<()> {
<Rudof as PrefixesOperations>::remove_prefix(self.rudof, self.alias)
}
}