pub struct RepoRow {
pub id: Option<String>,
pub preset: Option<String>,
pub enabled: Option<bool>,
pub name: Option<String>,
pub results_filter: Option<String>,
pub server: Option<String>,
pub sig_level: Option<String>,
pub key_id: Option<String>,
pub key_server: Option<String>,
pub mirrorlist: Option<String>,
pub mirrorlist_url: Option<String>,
}Expand description
What: One [[repo]] row supplied by the user.
Inputs:
- N/A (Serde shape).
Output:
- Field bundle for validation and later apply phases.
Details:
- Required for the results map:
name,results_filter. Other fields are reserved for Phase 3 (apply). - The
presetkey is rejected: use full rows; seeconfig/repos.confin the Pacsea repo.
Fields§
§id: Option<String>Stable Pacsea id (optional; for future UI / apply).
preset: Option<String>Unsupported; if set, parsing fails with a pointer to the example file.
enabled: Option<bool>Desired enabled state for future apply flows (None treated as true).
name: Option<String>Pacman [repo] section name.
results_filter: Option<String>Logical bucket for results-list toggles (settings.conf / dynamic map).
server: Option<String>Server = URL (Phase 3).
sig_level: Option<String>SigLevel (Phase 3).
key_id: Option<String>Signing key fingerprint/id (Phase 3).
key_server: Option<String>Keyserver hostname (Phase 3).
mirrorlist: Option<String>Local mirrorlist path (Phase 3).
mirrorlist_url: Option<String>Remote mirrorlist URL (Phase 3).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RepoRow
impl<'de> Deserialize<'de> for RepoRow
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
Auto Trait Implementations§
impl Freeze for RepoRow
impl RefUnwindSafe for RepoRow
impl Send for RepoRow
impl Sync for RepoRow
impl Unpin for RepoRow
impl UnsafeUnpin for RepoRow
impl UnwindSafe for RepoRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more