MarshalXML implements xml.Marshaler
(e *xml.Encoder, start xml.StartElement)
| 917 | |
| 918 | // MarshalXML implements xml.Marshaler |
| 919 | func (s *SubjectConfirmationData) MarshalXML(e *xml.Encoder, start xml.StartElement) error { |
| 920 | type Alias SubjectConfirmationData |
| 921 | aux := &struct { |
| 922 | NotOnOrAfter RelaxedTime `xml:",attr"` |
| 923 | *Alias |
| 924 | }{ |
| 925 | NotOnOrAfter: RelaxedTime(s.NotOnOrAfter), |
| 926 | Alias: (*Alias)(s), |
| 927 | } |
| 928 | return e.EncodeElement(aux, start) |
| 929 | } |
| 930 | |
| 931 | // UnmarshalXML implements xml.Unmarshaler |
| 932 | func (s *SubjectConfirmationData) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { |
nothing calls this directly
no test coverage detected