pub struct War3Image {
pub data_url: String,
pub width: u32,
pub height: u32,
pub filename: String,
}Expand description
Preview and minimap images
Fields§
§data_url: String§width: u32§height: u32§filename: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for War3Image
impl<'de> Deserialize<'de> for War3Image
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 From<&War3Image> for War3Image
impl From<&War3Image> for War3Image
Source§fn from(image: &War3ImageOri) -> Self
fn from(image: &War3ImageOri) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for War3Imagewhere
Self: DeserializeOwned,
impl FromWasmAbi for War3Imagewhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for War3Image
impl IntoWasmAbi for War3Image
Source§impl OptionFromWasmAbi for War3Imagewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for War3Imagewhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for War3Image
impl OptionIntoWasmAbi for War3Image
Source§impl RefFromWasmAbi for War3Imagewhere
Self: DeserializeOwned,
impl RefFromWasmAbi for War3Imagewhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§impl Tsify for War3Image
impl Tsify for War3Image
const DECL: &'static str = "/**\n * Preview and minimap images\n */\nexport interface War3Image {\n data_url: string;\n width: number;\n height: number;\n filename: string;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for War3Imagewhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for War3Imagewhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for War3Image
impl VectorIntoWasmAbi for War3Image
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Auto Trait Implementations§
impl Freeze for War3Image
impl RefUnwindSafe for War3Image
impl Send for War3Image
impl Sync for War3Image
impl Unpin for War3Image
impl UnwindSafe for War3Image
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.