pub struct Repository {
pub id: Option<String>,
pub name: Option<String>,
pub url: String,
pub layout: Option<String>,
pub update_policy: Option<UpdatePolicy>,
pub checksum_policy: Option<ChecksumPolicy>,
pub releases: Option<SubRepositoryRules>,
pub snapshots: Option<SubRepositoryRules>,
}
Fields§
§id: Option<String>
§name: Option<String>
§url: String
§layout: Option<String>
§update_policy: Option<UpdatePolicy>
§checksum_policy: Option<ChecksumPolicy>
§releases: Option<SubRepositoryRules>
§snapshots: Option<SubRepositoryRules>
Trait Implementations§
Source§impl ChildOfListElement for Repository
impl ChildOfListElement for Repository
fn parent_element_name() -> &'static str
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ComparableElement for Repository
impl ComparableElement for Repository
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 Debug for Repository
impl Debug for Repository
Source§impl Default for Repository
impl Default for Repository
Source§fn default() -> Repository
fn default() -> Repository
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Repository
impl<'de> Deserialize<'de> for Repository
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementConverter for Repository
impl ElementConverter for Repository
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 HasElementName for Repository
impl HasElementName for Repository
Source§fn element_name() -> &'static str
fn element_name() -> &'static str
The name of the element.
Source§impl PartialEq for Repository
impl PartialEq for Repository
Source§impl Serialize for Repository
impl Serialize for Repository
Source§impl UpdatableElement for Repository
impl UpdatableElement for Repository
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.
impl Eq for Repository
impl StructuralPartialEq for Repository
Auto Trait Implementations§
impl Freeze for Repository
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnwindSafe for Repository
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