Comments (3)
chrono package already has this, we need to use it and re-export the enum in the SDK:
https://docs.rs/chrono/0.4.19/chrono/enum.Weekday.html
from nettu-scheduler.
Same as the rrule
crate: https://docs.rs/rrule/0.5.9/rrule/enum.Weekday.html
I dont remember the reason on top of my head why I chose to model the week start with a number, but I guess there is no good reason.
Another semi related thing is the recurrence
attribute on CalendarEvent
which should ideally be modelled as an rrule string which is well defined instead of a custom Recurrence
struct. Google Calendar does this, but Outlook Calendar does not.
from nettu-scheduler.
Yes, I mean exactly the same. 👍🏼
For Recurrence
you mean this?
For the Rust SDK, I'm fine to use RRuleOptions
.
But a better solution can be an enum, to support either rrule string
or RRuleOptions
. wdyt?
from nettu-scheduler.
Related Issues (16)
- Scalibility and Reminders
- README seems broken HOT 1
- thread 'main' panicked at 'To create default account' HOT 4
- Production-ready versioning + docker + migrations HOT 3
- Log errors on query failure HOT 1
- `metadata` storage is not safe HOT 6
- Possibility to get_user_freebusy via the Rust SDK HOT 1
- Inconsistency in SDK methods HOT 2
- How to set baseUrl for `@nettu/sdk-scheduler`
- migration is broken because of sqlx compile time query checking HOT 2
- Project Status HOT 6
- Namespace environment variables and collection names HOT 1
- User Buckets HOT 2
- Support PostgreSQL HOT 7
- Tokio 1.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nettu-scheduler.