pub struct AptMirrorRuleDef {
pub distribution: Option<String>,
pub codename: Option<String>,
pub architecture: Option<String>,
pub uri: Option<String>,
pub suites: Vec<String>,
pub components: Vec<String>,
pub architectures: Vec<String>,
pub signed_by: Option<PathBuf>,
pub source_file: Option<PathBuf>,
}Expand description
Conditional APT mirror override matched against detected system attributes.
Fields§
§distribution: Option<String>Optional distribution identifier predicate.
codename: Option<String>Optional distribution codename predicate.
architecture: Option<String>Optional APT architecture predicate.
uri: Option<String>Repository URI override.
suites: Vec<String>Distribution suite override.
components: Vec<String>Repository component override.
architectures: Vec<String>Repository architecture override.
signed_by: Option<PathBuf>Signed-By keyring override.
source_file: Option<PathBuf>Managed source file override.
Trait Implementations§
Source§impl Clone for AptMirrorRuleDef
impl Clone for AptMirrorRuleDef
Source§fn clone(&self) -> AptMirrorRuleDef
fn clone(&self) -> AptMirrorRuleDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AptMirrorRuleDef
impl Debug for AptMirrorRuleDef
Source§impl Default for AptMirrorRuleDef
impl Default for AptMirrorRuleDef
Source§fn default() -> AptMirrorRuleDef
fn default() -> AptMirrorRuleDef
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AptMirrorRuleDefwhere
AptMirrorRuleDef: Default,
impl<'de> Deserialize<'de> for AptMirrorRuleDefwhere
AptMirrorRuleDef: Default,
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
impl Eq for AptMirrorRuleDef
Source§impl JsonSchema for AptMirrorRuleDef
impl JsonSchema for AptMirrorRuleDef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AptMirrorRuleDef
impl PartialEq for AptMirrorRuleDef
Source§impl Serialize for AptMirrorRuleDef
impl Serialize for AptMirrorRuleDef
impl StructuralPartialEq for AptMirrorRuleDef
Auto Trait Implementations§
impl Freeze for AptMirrorRuleDef
impl RefUnwindSafe for AptMirrorRuleDef
impl Send for AptMirrorRuleDef
impl Sync for AptMirrorRuleDef
impl Unpin for AptMirrorRuleDef
impl UnsafeUnpin for AptMirrorRuleDef
impl UnwindSafe for AptMirrorRuleDef
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.