docs: add specified_by_url for Duration

Co-authored-by: Anthony Griffon <an.griffon@gmail.com>
This commit is contained in:
meh 2021-11-03 14:56:42 +01:00 committed by GitHub
parent 6aeacd9737
commit f4c8222ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ use crate::{InputValueError, InputValueResult, Scalar, ScalarType, Value};
/// Implement the Duration scalar
///
/// The input/output is a string in ISO8601 format.
#[Scalar(internal, name = "Duration")]
#[Scalar(internal, name = "Duration", specified_by_url = "https://en.wikipedia.org/wiki/ISO_8601#Durations")]
impl ScalarType for Duration {
fn parse(value: Value) -> InputValueResult<Self> {
match &value {