pub struct FileInfo {
pub owner: Option<String>,
pub group: Option<String>,
pub mode: Option<StringOrU32>,
pub mtime: Option<String>,
}Expand description
Shared file metadata (owner, group, mode, mtime) used by both archive entries
and nFPM package contents. Previously duplicated as ArchiveFileInfo and
NfpmFileInfo; now unified.
Fields§
§owner: Option<String>File owner name (e.g., “root”).
group: Option<String>File group name (e.g., “root”).
mode: Option<StringOrU32>File permission mode. Accepts a YAML int (decimal, e.g. 420 for
0o644) or an octal-prefixed string ("0o644", "0644"). This
matches GoReleaser’s uint32 type for Mode on archive/nfpm contents
while letting users spell octal naturally in YAML.
mtime: Option<String>File modification time in RFC3339 format (e.g., “2024-01-01T00:00:00Z”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInfo
impl<'de> Deserialize<'de> for FileInfo
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 FileInfo
impl JsonSchema for FileInfo
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 moreimpl StructuralPartialEq for FileInfo
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnsafeUnpin for FileInfo
impl UnwindSafe for FileInfo
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