jwilm / pagerduty-rs Goto Github PK
View Code? Open in Web Editor NEWAn unofficial PagerDuty API Client in Rust
Home Page: https://jwilm.github.io/pagerduty-rs/pagerduty/
License: Other
An unofficial PagerDuty API Client in Rust
Home Page: https://jwilm.github.io/pagerduty-rs/pagerduty/
License: Other
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 :)
๐ 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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.