oref-red-alert

Crates.iooref-red-alert
lib.rsoref-red-alert
version1.0.1
sourcesrc
created_at2021-05-14 16:25:04.991036
updated_at2021-05-14 18:17:45.634365
descriptionIsrael Home Front Command API wrapper
homepage
repositoryhttps://github.com/ronthecookie/oref-red-alert
max_upload_size
id397477
size7,371
Ron B (ronthecookie)

documentation

README

oref-red-alert

Find out if missiles are going to hit Israel from inside Rust using the Home Front Command API.

Usage

[dependencies]
oref-red-alert = "1.0"
let alert = Alert::get().unwrap();
if alert.is_some() {
    println!("Affected cities: {}", alert.unwrap().areas.len())
} else {
    println!("There is no alert available");
}

License

This library is licensed under the MIT license; the terms of the license can be found in the LICENSE file.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Commit count: 0

cargo fmt