pub fn add_fallback<FallbackSerializer>(
        mut self,
        fallback_serializer: FallbackSerializer,
    ) -> Self
    where
        FallbackSerializer: UnsignToString + 'static,
    {
        self.fallback_serializers
            .push(Box::new(fallback_serializer));

        self
    }
/// Adds a [`Serializer`] to as a fallback, that will be attempted to be used to
/// unsign a value if the primary serializer fails to unsign a value.
///
/// # Remarks
/// Fallback serializers are attempted in the order they are added. For optimal
/// performance when using fallbacks, add them in the order they will probably
/// be used. Meaning, if you have a 2 fallbacks, consider adding the one you
/// expect to be sucecessful before the other.
Adds a [`Serializer`] to as a fallback, that will be attempted to be used to
unsign a value if the primary serializer fails to unsign a value.
Adds a [ ` Serializer ` ] to as a fallback that will be attempted to be used to unsign a value if the primary serializer fails to unsign a value .
pub fn add_fallback<FallbackSerializer>(
        mut self,
        fallback_serializer: FallbackSerializer,
    ) -> Self
    where
        FallbackSerializer: UnsignToString + 'static,
    {
        self.fallback_serializers
            .push(Box::new(fallback_serializer));
        self
    }
pub fn add_fallback < FallbackSerializer > ( mut self , fallback_serializer : FallbackSerializer , ) -> Self where FallbackSerializer : UnsignToString + ' static , { self . fallback_serializers . push ( Box :: new ( fallback_serializer ) ) ; self }
Adds a [`Serializer`] to as a fallback, that will be attempted to be used to
unsign a value if the primary serializer fails to unsign a value.
Adds a [ ` Serializer ` ] to as a fallback that will be attempted to be used to unsign a value if the primary serializer fails to unsign a value .
mut self
fallback_serializer
FallbackSerializer
mut self
fallback_serializer
FallbackSerializer
remarks
Fallback serializers are attempted in the order they are added. For optimal
performance when using fallbacks, add them in the order they will probably
be used. Meaning, if you have a 2 fallbacks, consider adding the one you
expect to be sucecessful before the other.
Fallback serializers are attempted in the order they are added . For optimal performance when using fallbacks add them in the order they will probably be used . Meaning if you have a 2 fallbacks consider adding the one you expect to be sucecessful before the other .