GithubHelp home page GithubHelp logo

jwilm / pagerduty-rs Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 6.0 4.66 MB

An unofficial PagerDuty API Client in Rust

Home Page: https://jwilm.github.io/pagerduty-rs/pagerduty/

License: Other

Rust 100.00%

pagerduty-rs's People

Contributors

cohedrin avatar jwilm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pagerduty-rs's Issues

Generic parameters and Into<Cow>

Hi, just stumbled upon this from your blog post :) Just a minor note, if you want things to make as nice as possible, you may want to not restrict the string type to be the same when a function accepts multiple parameters:

    pub fn image<S>(src: S, href: Option<S>, alt: Option<S>) -> Context<'a>
        where S: Into<Cow<'a, str>>

should probably be

    pub fn image<S1, S2, S3>(src: S1, href: Option<S2>, alt: Option<S3>) -> Context<'a>
        where S1: Into<Cow<'a, str>>, S2: Into<Cow<'a, str>>, S3: Into<Cow<'a, str>>

(otherwise you're either only accepting all &str, or all String, but can't mix them)

The signature looks fairly ugly though, gotta give it that :)

Docs links are broken

๐Ÿ‘‹ I'm interested in trying out this crate but it appears all the links to the docs are broken. Looks like maybe a redirect conflict with your blog perhaps? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.