pub struct Repository { /* private fields */ }
Expand description
A structure representing APT repository as declared by DEB822 source file
According to sources.list(5)
man pages, only four fields are mandatory:
Types
eitherdeb
or/anddeb-src
URIs
to repositories holding valid APT structure (unclear if multiple are allowed)Suites
usually being distribution codenamesComponent
most of the timemain
, but it’s a section of the repository
The manpage specifies following optional fields
Enabled
is a yes/no field, default yesArchitectures
Languages
Targets
PDiffs
is a yes/no fieldBy-Hash
is a yes/no/force fieldAllow-Insecure
is a yes/no field, default noAllow-Weak
is a yes/no field, default noAllow-Downgrade-To-Insecure
is a yes/no field, default noTrusted
us a yes/no fieldSigned-By
is either path to the key or PGP key blockCheck-Valid-Until
is a yes/no fieldValid-Until-Min
Valid-Until-Max
Check-Date
is a yes/no fieldDate-Max-Future
InRelease-Path
relative pathSnapshot
eitherenable
or a snapshot ID
The unit tests of APT use:
Description
The RepoLib tool uses:
X-Repolib-Name
identifier for own reference, meaningless for APT
Note: Multivalues *-Add
& *-Remove
semantics aren’t supported.
Implementations§
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
Returns a duplicate 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 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<P: Deb822LikeParagraph> FromDeb822Paragraph<P> for Repository
impl<P: Deb822LikeParagraph> FromDeb822Paragraph<P> for Repository
Source§impl PartialEq for Repository
impl PartialEq for Repository
Source§impl<P: Deb822LikeParagraph> ToDeb822Paragraph<P> for Repository
impl<P: Deb822LikeParagraph> ToDeb822Paragraph<P> for Repository
Source§fn to_paragraph(&self) -> P
fn to_paragraph(&self) -> P
Convert this object to a paragraph.
Source§fn update_paragraph(&self, para: &mut P)
fn update_paragraph(&self, para: &mut P)
Update the given paragraph with the values from this object.
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