pub struct BuildEditor<'a> { /* private fields */ }
Expand description
Allows for editing the build section of a pom file
Implementations§
Source§impl<'a> BuildEditor<'a>
impl<'a> BuildEditor<'a>
pub fn set_source_directory(&mut self, value: &str)
pub fn get_source_directory(&self) -> Option<String>
pub fn set_final_name(&mut self, value: &str)
pub fn get_final_name(&self) -> Option<String>
pub fn set_directory(&mut self, value: &str)
pub fn get_directory(&self) -> Option<String>
pub fn set_default_goal(&mut self, value: &str)
pub fn get_default_goal(&self) -> Option<String>
Sourcepub fn get_plugins(&self) -> Result<Vec<Plugin>, XMLEditorError>
pub fn get_plugins(&self) -> Result<Vec<Plugin>, XMLEditorError>
Gets all the plugins in the build section
Sourcepub fn add_or_update_plugin(
&mut self,
plugin: Plugin,
) -> Result<Option<Plugin>, XMLEditorError>
pub fn add_or_update_plugin( &mut self, plugin: Plugin, ) -> Result<Option<Plugin>, XMLEditorError>
Adds or updates a plugin in the build section
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BuildEditor<'a>
impl<'a> RefUnwindSafe for BuildEditor<'a>
impl<'a> Send for BuildEditor<'a>
impl<'a> Sync for BuildEditor<'a>
impl<'a> Unpin for BuildEditor<'a>
impl<'a> !UnwindSafe for BuildEditor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more