Struct cargo_packager::config::DmgConfig
source · #[non_exhaustive]pub struct DmgConfig {
pub background: Option<PathBuf>,
pub window_position: Option<Position>,
pub window_size: Option<Size>,
pub app_position: Option<Position>,
pub app_folder_position: Option<Position>,
}
Expand description
The Apple Disk Image (.dmg) configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.background: Option<PathBuf>
Image to use as the background in dmg file. Accepted formats: png
/jpg
/gif
.
window_position: Option<Position>
Position of volume window on screen.
window_size: Option<Size>
Size of volume window.
app_position: Option<Position>
Position of application file on window.
app_folder_position: Option<Position>
Position of application folder on window.
Implementations§
source§impl DmgConfig
impl DmgConfig
sourcepub fn background<P: Into<PathBuf>>(self, path: P) -> Self
pub fn background<P: Into<PathBuf>>(self, path: P) -> Self
Set an image to use as the background in dmg file. Accepted formats: png
/jpg
/gif
.
sourcepub fn window_position(self, position: Position) -> Self
pub fn window_position(self, position: Position) -> Self
Set the poosition of volume window on screen.
sourcepub fn window_size(self, size: Size) -> Self
pub fn window_size(self, size: Size) -> Self
Set the size of volume window.
sourcepub fn app_position(self, position: Position) -> Self
pub fn app_position(self, position: Position) -> Self
Set the poosition of app file on window.
sourcepub fn app_folder_position(self, position: Position) -> Self
pub fn app_folder_position(self, position: Position) -> Self
Set the position of application folder on window.
Trait Implementations§
source§impl<'de> Deserialize<'de> for DmgConfig
impl<'de> Deserialize<'de> for DmgConfig
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 DmgConfig
impl RefUnwindSafe for DmgConfig
impl Send for DmgConfig
impl Sync for DmgConfig
impl Unpin for DmgConfig
impl UnwindSafe for DmgConfig
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.