1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
mod ident; mod load; use ident::Ident; use load::Load; use std::rc::Rc; /// [SimpleActionGroup](https://docs.gtk.org/gio/class.SimpleActionGroup.html) wrapper for `Browser` actions pub struct Action { pub ident: Rc<Ident>, pub load: Rc<Load>, } impl Action { // Constructors /// Create new `Self` pub fn new() -> Self { Self { ident: Rc::new(Ident::new()), load: Rc::new(Load::new()), } } }