Skip to content

Commit

Permalink
Add UtilsDefaultSerde to AttributedURIType
Browse files Browse the repository at this point in the history
  • Loading branch information
nrbnlulu committed Mar 28, 2024
1 parent aeedff9 commit 8ff0cad
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions wsdl_rs/ws_addr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::str::FromStr;
use validate::Validate;
use xsd_macro_utils::*;
use yaserde_derive::{YaDeserialize, YaSerialize};
use xsd_macro_utils::UtilsDefaultSerde;

pub type EndpointReference = EndpointReferenceType;

Expand Down Expand Up @@ -85,14 +86,11 @@ pub type From = EndpointReferenceType;
pub type FaultTo = EndpointReferenceType;
pub type To = AttributedURIType;
pub type Action = AttributedURIType;
#[derive(Default, PartialEq, Debug, YaSerialize, YaDeserialize)]
#[yaserde(
prefix = "tns",
namespace = "tns: http://www.w3.org/2005/08/addressing"
)]
pub struct AttributedURIType {}

impl Validate for AttributedURIType {}


#[derive(Default, PartialEq, Debug, UtilsTupleIo, UtilsDefaultSerde)]
pub struct AttributedURIType(pub String);

pub type IsReferenceParameter = bool;
#[derive(PartialEq, Debug, UtilsUnionSerDe)]
Expand Down Expand Up @@ -149,4 +147,4 @@ pub struct ProblemActionType {
pub soap_action: Option<String>,
}

impl Validate for ProblemActionType {}
impl Validate for ProblemActionType {}

0 comments on commit 8ff0cad

Please sign in to comment.