pub struct JsBuildResult {
pub protocol: Buffer,
pub css_files: Vec<String>,
pub component_asset_files: Vec<String>,
pub metafile: Option<String>,
pub warnings: Vec<String>,
pub stats: JsBuildStats,
}Expand description
Result of a successful build operation.
Fields§
§protocol: BufferSerialized protocol (protobuf binary).
css_files: Vec<String>CSS files as alternating [filename, content, filename, content, …].
component_asset_files: Vec<String>Static component asset files as alternating [filename, content, filename, content, …].
metafile: Option<String>Esbuild-compatible component asset metafile JSON when requested.
warnings: Vec<String>Non-fatal build advisories (plain text), e.g. CSS tokens used only with a
literal var() fallback and absent from every theme.
stats: JsBuildStatsBuild statistics.
Trait Implementations§
Source§impl FromNapiValue for JsBuildResult
impl FromNapiValue for JsBuildResult
Source§unsafe fn from_napi_value(
env: napi_env,
napi_val: napi_value,
) -> Result<JsBuildResult>
unsafe fn from_napi_value( env: napi_env, napi_val: napi_value, ) -> Result<JsBuildResult>
This function called to convert napi values to native rust values Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self, Error>
Source§impl ToNapiValue for JsBuildResult
impl ToNapiValue for JsBuildResult
Source§unsafe fn to_napi_value(env: napi_env, val: JsBuildResult) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: JsBuildResult) -> Result<napi_value>
This function called to convert rust values to napi values Read more
fn into_unknown(self, env: &Env) -> Result<Unknown<'_>, Error>
Source§impl TypeName for JsBuildResult
impl TypeName for JsBuildResult
Source§impl ValidateNapiValue for JsBuildResult
impl ValidateNapiValue for JsBuildResult
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
This function called to validate whether napi value passed to rust is valid type. Read more
Auto Trait Implementations§
impl Freeze for JsBuildResult
impl RefUnwindSafe for JsBuildResult
impl Send for JsBuildResult
impl Sync for JsBuildResult
impl Unpin for JsBuildResult
impl UnsafeUnpin for JsBuildResult
impl UnwindSafe for JsBuildResult
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> 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