android-intent 0.2.1

Android intent utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Action to invoke with an intent
pub enum Action {
    Send,
    Edit,
    Chooser,
}

impl AsRef<str> for Action {
    fn as_ref(&self) -> &str {
        match self {
            Self::Send => "ACTION_SEND",
            Self::Edit => "ACTION_EDIT",
            Self::Chooser => "ACTION_CHOOSER",
        }
    }
}