Accessing docstring of a field

question

#1

Fields of a struct can be documented, but how does one retrieve the docstrings? Is it possible via ? in the REPL? MWE:

struct Foo
    "I want this docstring"
    x
end

#2
julia> "docstring for T type"
       struct T
           "docstring for x field"
           x
           "docstring for y field"
           y
       end
T

help?> T
search: try Type Task toq toc tic tan Text Test Tuple triu tril time tanh tand Timer tuple throw trunc trues triu! tril! trace touch take!

  docstring for T type

help?> T.x
  docstring for x field

help?> T.y
  docstring for y field

#3

Looks like it only shows up if you also have docstrings for the struct itself

julia> """
        Foo docs
        """struct Foo
            "I want this docstring"
            x
        end
Foo

help?> Foo.x
  I want this docstring