caldav/types

Types

Represents a calendar collection returned by the server.

pub type Calendar {
  Calendar(
    url: String,
    display_name: String,
    description: option.Option(String),
    ctag: option.Option(String),
  )
}

Constructors

Wraps the root configuration used by the library.

pub type Client {
  Client(config: config.Config)
}

Constructors

Contains the URLs discovered during the CalDAV bootstrap flow.

pub type DiscoveryInfo {
  DiscoveryInfo(
    principal_url: String,
    calendar_home_set_url: String,
  )
}

Constructors

  • DiscoveryInfo(
      principal_url: String,
      calendar_home_set_url: String,
    )

Represents a calendar object resource together with useful metadata.

pub type Event {
  Event(
    href: String,
    etag: option.Option(String),
    calendar_data: String,
    content_type: option.Option(String),
  )
}

Constructors

Represents a time interval used in calendar queries.

pub type TimeRange {
  TimeRange(start: Int, end: Int)
}

Constructors

  • TimeRange(start: Int, end: Int)
Search Document