Skip to content

Unclear where to import xsd module from #146

Open
@torkleyy

Description

@torkleyy
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)]
#[yaserde()]
pub struct Example {
    #[yaserde(attribute, rename = "Version")]
    pub version: xsd::UnsignedInt,

    #[yaserde(attribute, rename = "PlatformType")]
    pub platform_type: xsd::String,
}

I assumed these are the correct imports:

use xsd_parser::generator::validator::Validate;
use xsd_types::types as xsd;

However, the generated are not in xsd_types. Where am I supposed to import xsd from? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions