Lines Matching refs:serde
2 use serde;
507 impl<T: serde::Serialize> serde::Serialize for SingularPtrField<T> {
511 ) -> Result<<S as serde::Serializer>::Ok, <S as serde::Serializer>::Error> in serialize()
513 S: serde::Serializer, in serialize()
520 impl<T: serde::Serialize> serde::Serialize for SingularField<T> {
524 ) -> Result<<S as serde::Serializer>::Ok, <S as serde::Serializer>::Error> in serialize()
526 S: serde::Serializer, in serialize()
533 impl<'de, T: serde::Deserialize<'de>> serde::Deserialize<'de> for SingularPtrField<T> {
534 fn deserialize<D>(deserializer: D) -> Result<Self, <D as serde::Deserializer<'de>>::Error> in deserialize()
536 D: serde::Deserializer<'de>, in deserialize()
543 impl<'de, T: serde::Deserialize<'de> + Default> serde::Deserialize<'de> for SingularField<T> {
544 fn deserialize<D>(deserializer: D) -> Result<Self, <D as serde::Deserializer<'de>>::Error> in deserialize()
546 D: serde::Deserializer<'de>, in deserialize()