pub fn SerializeURL<S>(
URLInstance: &Url,
SerializerInstance: S,
) -> Result<S::Ok, S::Error>where
S: Serializer,Expand description
Serializes a URL to a JSON string value.
§Arguments
URLInstance- The URL to serializeSerializerInstance- The serde serializer instance
§Returns
Result containing the serialized string or serialization error
§Behavior
- Converts URL to its string representation
- Uses the serializer to create a JSON string value