pub struct DistributionRepository {
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>,
}
Fields§
§id: Option<String>
§name: Option<String>
§url: String
§layout: Option<String>
§update_policy: Option<UpdatePolicy>
§checksum_policy: Option<ChecksumPolicy>
Implementations§
Source§impl DistributionRepository
impl DistributionRepository
pub fn repository(self) -> DistributionRepositoryRepository
pub fn snapshot_repository(self) -> DistributionRepositorySnapshotRepository
Trait Implementations§
Source§impl Clone for DistributionRepository
impl Clone for DistributionRepository
Source§fn clone(&self) -> DistributionRepository
fn clone(&self) -> DistributionRepository
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 DistributionRepository
impl ComparableElement for DistributionRepository
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 DistributionRepository
impl Debug for DistributionRepository
Source§impl Default for DistributionRepository
impl Default for DistributionRepository
Source§fn default() -> DistributionRepository
fn default() -> DistributionRepository
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DistributionRepository
impl<'de> Deserialize<'de> for DistributionRepository
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 DistributionRepository
impl ElementConverter for DistributionRepository
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§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 From<DistributionRepository> for DistributionRepositorySnapshotRepository
impl From<DistributionRepository> for DistributionRepositorySnapshotRepository
Source§fn from(repository: DistributionRepository) -> Self
fn from(repository: DistributionRepository) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DistributionRepository
impl PartialEq for DistributionRepository
Source§impl Serialize for DistributionRepository
impl Serialize for DistributionRepository
Source§impl UpdatableElement for DistributionRepository
impl UpdatableElement for DistributionRepository
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 DistributionRepository
impl StructuralPartialEq for DistributionRepository
Auto Trait Implementations§
impl Freeze for DistributionRepository
impl RefUnwindSafe for DistributionRepository
impl Send for DistributionRepository
impl Sync for DistributionRepository
impl Unpin for DistributionRepository
impl UnwindSafe for DistributionRepository
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