How can I access the value of a GtkSpinButton?

See Gtk.Builder

Or take a look at simple Rust applications, eg Authenticator or Decoder on Gnome Gitlab.