pub struct TranscodeOptions {
pub from: Compression,
pub to: Compression,
pub level: Option<i32>,
}Expand description
Options controlling transcode_archive and
transcode_archive_with_stats.
Fields§
§from: CompressionSource compression algorithm. When set to Compression::Unknown
the actual algorithm is auto-detected from the source archive’s
tile_compression header field.
Default: Compression::Unknown (auto-detect).
to: CompressionTarget compression algorithm. Must NOT be Compression::Unknown;
the transcoder returns PmTilesError::UnsupportedCompression if it
is.
Default: Compression::Gzip.
level: Option<i32>Codec-specific compression level (lower = faster / larger, higher = slower / smaller). Interpreted by the target codec:
- Gzip: 0–9 (default 6 when
None) - Brotli: 0–11 (default 6 when
None) - Zstd: ignored — the OxiARC zstd encoder does not currently expose a level knob; the default is always used.
Default: None.
Trait Implementations§
Source§impl Clone for TranscodeOptions
impl Clone for TranscodeOptions
Source§fn clone(&self) -> TranscodeOptions
fn clone(&self) -> TranscodeOptions
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 TranscodeOptions
impl Debug for TranscodeOptions
Auto Trait Implementations§
impl Freeze for TranscodeOptions
impl RefUnwindSafe for TranscodeOptions
impl Send for TranscodeOptions
impl Sync for TranscodeOptions
impl Unpin for TranscodeOptions
impl UnsafeUnpin for TranscodeOptions
impl UnwindSafe for TranscodeOptions
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,
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 more