Boscop

Results 547 comments of Boscop

Btw, these are my types: ```rust pub type DOMTimeStamp = u64; pub type DOMString = String; #[derive(Serialize, Deserialize, Debug, SmartDefault)] pub struct PositionOptions { pub enableHighAccuracy: bool, #[default = "0xFFFFFFFF"]...

This also doesn't work: ```rust #[derive(Clone, Debug, ReferenceType)] #[reference(instance_of = "Position")] pub struct Position(Reference); impl Position { pub fn get_timestamp( &self ) -> DOMTimeStamp { js! ( return @{&self.0}.timestamp; ).try_into().unwrap()...

According to this, the first way (`try_into`) should work: https://docs.rs/stdweb/*/stdweb/macro.js_deserializable.html But I'm getting >Panic error message: called `Result::unwrap()` on an `Err` value: ConversionError { kind: Custom("missing field `coords`") }

I pushed my crate & example to Github: https://github.com/Boscop/yew-geolocation When you run it with `cargo web start --example basic --target=wasm32-unknown-unknown`, as you can see it logs the `Position` to the...

Wow, nice :)

I think an annotation would be a good choice. Maybe `#[xml(attribute)]`.

@anton-dutov Wouldn't that also affect json serializaton because it's `#[serde(rename)]`?

@lovasoa Wow, I didn't know about dezoomify but it looks like a very cool project. That project was about downloading 360° panorama/cubemap tiles and stitching them together, to be able...

I've used `PathBuf` with envy before, but the question is mainly about how to separate them with commas when some values can contain commas. It would also apply to `Vec`...

Many XML documents that occur in the real world have multiple root elements (e.g. the ones I have to deal with at work) so I'd appreciate if I could still...