UUID

extension UUID: ScalarConstructible
extension UUID: ScalarRepresentable
extension UUID: YAMLEncodable
  • Construct an instance of UUID, if possible, from the specified scalar.

    Declaration

    Swift

    public static func construct(from scalar: Node.Scalar) -> UUID?

    Parameters

    scalar

    The Node.Scalar from which to extract a value of type UUID, if possible.

    Return Value

    An instance of UUID, if one was successfully extracted from the scalar.

ScalarRepresentable