docs: add specified_by_url for Duration
Co-authored-by: Anthony Griffon <an.griffon@gmail.com>
This commit is contained in:
parent
6aeacd9737
commit
f4c8222ef8
2
src/types/external/duration.rs
vendored
2
src/types/external/duration.rs
vendored
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user