Giter Site home page Giter Site logo

Comments (3)

omid avatar omid commented on May 30, 2024

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.

fmeringdal avatar fmeringdal commented on May 30, 2024

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.

omid avatar omid commented on May 30, 2024

Yes, I mean exactly the same. 👍🏼

For Recurrence you mean this?

pub recurrence: Option<RRuleOptions>,

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)

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.