pub struct DistributionRepositoryRepository(/* private fields */);
Implementations§
Source§impl DistributionRepositoryRepository
impl DistributionRepositoryRepository
pub fn new(repository: DistributionRepository) -> Self
Trait Implementations§
Source§impl ComparableElement for DistributionRepositoryRepository
impl ComparableElement for DistributionRepositoryRepository
Source§fn is_same_item(&self, other: &Self) -> bool
fn is_same_item(&self, other: &Self) -> bool
Checks if the current element is the same as the other element.
Some implementations may only check a subset of fields. Such as Dependency only checking the group id and artifact id.
Source§impl ElementConverter for DistributionRepositoryRepository
impl ElementConverter for DistributionRepositoryRepository
Source§fn from_element(
element: Element,
document: &Document,
) -> Result<Self, XMLEditorError>
fn from_element( element: Element, document: &Document, ) -> Result<Self, XMLEditorError>
Converts an [Element] to the specific type.
Source§fn into_children(
self,
document: &mut Document,
) -> Result<Vec<Element>, XMLEditorError>
fn into_children( self, document: &mut Document, ) -> Result<Vec<Element>, XMLEditorError>
Creates all children of the current type.
Source§fn into_element(
self,
document: &mut Document,
) -> Result<Element, XMLEditorError>where
Self: HasElementName,
fn into_element(
self,
document: &mut Document,
) -> Result<Element, XMLEditorError>where
Self: HasElementName,
Creates an [Element] from the current type. Read more
Source§impl From<DistributionRepository> for DistributionRepositoryRepository
impl From<DistributionRepository> for DistributionRepositoryRepository
Source§fn from(repository: DistributionRepository) -> Self
fn from(repository: DistributionRepository) -> Self
Converts to this type from the input type.
Source§impl HasElementName for DistributionRepositoryRepository
impl HasElementName for DistributionRepositoryRepository
Source§fn element_name() -> &'static str
fn element_name() -> &'static str
The name of the element.
Source§impl UpdatableElement for DistributionRepositoryRepository
impl UpdatableElement for DistributionRepositoryRepository
fn update_element( &self, element: Element, document: &mut Document, ) -> Result<(), XMLEditorError>
Source§fn replace_all_elements(
self,
element: Element,
document: &mut Document,
) -> Result<(), XMLEditorError>
fn replace_all_elements( self, element: Element, document: &mut Document, ) -> Result<(), XMLEditorError>
Replaces all children of the element with the children of the current element.
Auto Trait Implementations§
impl Freeze for DistributionRepositoryRepository
impl RefUnwindSafe for DistributionRepositoryRepository
impl Send for DistributionRepositoryRepository
impl Sync for DistributionRepositoryRepository
impl Unpin for DistributionRepositoryRepository
impl UnwindSafe for DistributionRepositoryRepository
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