ObsBuildConfig

Struct ObsBuildConfig 

Source
pub struct ObsBuildConfig {
    pub out_dir: PathBuf,
    pub cache_dir: Option<PathBuf>,
    pub repo_id: Option<String>,
    pub override_zip: Option<PathBuf>,
    pub rebuild: bool,
    pub browser: bool,
    pub tag: Option<String>,
    pub skip_compatibility_check: bool,
    pub remove_pdbs: bool,
}
Expand description

Configuration options for building OBS binaries

Fields§

§out_dir: PathBuf

The directory the libobs binaries should be installed to (this is typically your target/debug or target/release directory)

§cache_dir: Option<PathBuf>

The location where the OBS Studio binaries should be downloaded to. If this is set to None, it defaults to reading the Cargo.toml metadata. If no metadata is set, it defaults to obs-build.

§repo_id: Option<String>

The GitHub repository to clone OBS Studio from, if not specified it defaults to obsproject/obs-studio

§override_zip: Option<PathBuf>

If this is specified, the specified zip file will be used instead of downloading the latest release This is useful for testing purposes, but it is not recommended to use this in production

§rebuild: bool

When this flag is active, the cache will be cleared and a new build will be started

§browser: bool

If the browser should be included in the build

§tag: Option<String>

The tag of the OBS Studio release to build. If none is specified, first the Cargo.toml metadata will be checked, if the version is not set it’ll find the matching release for the libobs crate will be used. Use latest for the latest obs release.

§skip_compatibility_check: bool

If the compatibility check should be skipped

§remove_pdbs: bool

If set, PDBs will be deleted after extraction to save space, saving disk space.

Trait Implementations§

Source§

impl Clone for ObsBuildConfig

Source§

fn clone(&self) -> ObsBuildConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ObsBuildConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ObsBuildConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.