pub enum ArchiveFileSpec {
Glob(String),
Detailed {
src: String,
dst: Option<String>,
info: Option<ArchiveFileInfo>,
strip_parent: Option<bool>,
},
}Expand description
Specifies a file to include in archives. Can be a simple glob string or a detailed object with src/dst/info fields for controlling archive placement and file metadata.
NOTE: This is intentionally a separate type from ExtraFileSpec (used for
checksum/release extra_files). ArchiveFileSpec needs src/dst/info
fields for archive placement and file metadata (owner, group, mode, mtime),
while ExtraFileSpec needs glob/name_template for checksumming and
upload renaming. The fields and semantics are different enough that a unified
type would be confusing.
Variants§
Trait Implementations§
Source§impl Clone for ArchiveFileSpec
impl Clone for ArchiveFileSpec
Source§fn clone(&self) -> ArchiveFileSpec
fn clone(&self) -> ArchiveFileSpec
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 ArchiveFileSpec
impl Debug for ArchiveFileSpec
Source§impl<'de> Deserialize<'de> for ArchiveFileSpec
impl<'de> Deserialize<'de> for ArchiveFileSpec
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 JsonSchema for ArchiveFileSpec
impl JsonSchema for ArchiveFileSpec
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq<&str> for ArchiveFileSpec
impl PartialEq<&str> for ArchiveFileSpec
Source§impl PartialEq for ArchiveFileSpec
impl PartialEq for ArchiveFileSpec
Source§fn eq(&self, other: &ArchiveFileSpec) -> bool
fn eq(&self, other: &ArchiveFileSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ArchiveFileSpec
impl Serialize for ArchiveFileSpec
impl StructuralPartialEq for ArchiveFileSpec
Auto Trait Implementations§
impl Freeze for ArchiveFileSpec
impl RefUnwindSafe for ArchiveFileSpec
impl Send for ArchiveFileSpec
impl Sync for ArchiveFileSpec
impl Unpin for ArchiveFileSpec
impl UnsafeUnpin for ArchiveFileSpec
impl UnwindSafe for ArchiveFileSpec
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