How to get structure field options from blueprint?

Hi. I’m looking to get the field options directly from my blueprint. There’s a good cookbook article on this. In my case though, I need to get the field from a structure field. Is that possible? I figured something like this might work, but no luck.

$page->blueprint()->field('my_structure_field')->field('my_field');

Any insight would be appreciated.

Oh… I see that you can dig into the array to extract a field from a structure field.

Sample blueprint…

my_structure_field:
  type: structure
  fields:
    my_field:
      type: select 
      options:
        option one 
        option two 
        option three 

To get that my_field field you can do something like this…

$field = $page->blueprint()->field('my_structure_field');
$field_options = $field['fields']['my_field']['options'];