pub struct RepeatCalculationResource<'a> { /* private fields */ }Expand description
client.repeat_calculation()
Implementations§
Source§impl<'a> RepeatCalculationResource<'a>
impl<'a> RepeatCalculationResource<'a>
Sourcepub fn calculate(
&self,
body: &RepeatCalculationCreate,
) -> Result<Vec<RepeatCalculationOccurrence>>
pub fn calculate( &self, body: &RepeatCalculationCreate, ) -> Result<Vec<RepeatCalculationOccurrence>>
Calculate occurrence dates without saving an appointment
POST /repeatcalculation
Calculates occurrence dates without storing an appointment.
§Example
let body = models::RepeatCalculationCreate {
end_date: DateOrDateTime::DateTime("2026-09-20T09:30:00Z".parse()?),
start_date: DateOrDateTime::DateTime("2026-09-20T08:00:00Z".parse()?),
..Default::default()
};
for repeat_calculation in client.repeat_calculation().calculate(&body)? {
println!("{:?}", repeat_calculation);
}Sourcepub fn delete(
&self,
body: &RepeatCalculationCreate,
) -> Result<Vec<RepeatCalculationOccurrence>>
pub fn delete( &self, body: &RepeatCalculationCreate, ) -> Result<Vec<RepeatCalculationOccurrence>>
Calculate occurrence dates without saving an appointment
DELETE /repeatcalculation
Calculates occurrence dates without storing an appointment. This is an alias of POST; use POST for new integrations.
§Example
let body = models::RepeatCalculationCreate {
end_date: DateOrDateTime::DateTime("2026-09-20T09:30:00Z".parse()?),
start_date: DateOrDateTime::DateTime("2026-09-20T08:00:00Z".parse()?),
..Default::default()
};
for repeat_calculation in client.repeat_calculation().delete(&body)? {
println!("{:?}", repeat_calculation);
}Sourcepub fn list(
&self,
query: &GetRepeatcalculationQuery,
) -> Result<Vec<RepeatCalculationOccurrence>>
pub fn list( &self, query: &GetRepeatcalculationQuery, ) -> Result<Vec<RepeatCalculationOccurrence>>
Calculate occurrence dates without saving an appointment
GET /repeatcalculation
Calculates occurrence dates without storing an appointment. This is an alias of POST; use POST for new integrations.
§Example
let query = GetRepeatcalculationQuery {
end_date: Some(serde_json::json!("2026-09-20T09:30:00Z")),
start_date: Some(serde_json::json!("2026-09-20T08:00:00Z")),
..Default::default()
};
for repeat_calculation in client.repeat_calculation().list(&query)? {
println!("{:?}", repeat_calculation);
}Sourcepub fn patch(
&self,
body: &RepeatCalculationCreate,
) -> Result<Vec<RepeatCalculationOccurrence>>
pub fn patch( &self, body: &RepeatCalculationCreate, ) -> Result<Vec<RepeatCalculationOccurrence>>
Calculate occurrence dates without saving an appointment
PATCH /repeatcalculation
Calculates occurrence dates without storing an appointment. This is an alias of POST; use POST for new integrations.
§Example
let body = models::RepeatCalculationCreate {
end_date: DateOrDateTime::DateTime("2026-09-20T09:30:00Z".parse()?),
start_date: DateOrDateTime::DateTime("2026-09-20T08:00:00Z".parse()?),
..Default::default()
};
for repeat_calculation in client.repeat_calculation().patch(&body)? {
println!("{:?}", repeat_calculation);
}Sourcepub fn update(
&self,
body: &RepeatCalculationCreate,
) -> Result<Vec<RepeatCalculationOccurrence>>
pub fn update( &self, body: &RepeatCalculationCreate, ) -> Result<Vec<RepeatCalculationOccurrence>>
Calculate occurrence dates without saving an appointment
PUT /repeatcalculation
Calculates occurrence dates without storing an appointment. This is an alias of POST; use POST for new integrations.
§Example
let body = models::RepeatCalculationCreate {
end_date: DateOrDateTime::DateTime("2026-09-20T09:30:00Z".parse()?),
start_date: DateOrDateTime::DateTime("2026-09-20T08:00:00Z".parse()?),
..Default::default()
};
for repeat_calculation in client.repeat_calculation().update(&body)? {
println!("{:?}", repeat_calculation);
}