pub struct PersonsEventsServicesResource<'a> { /* private fields */ }Expand description
client.persons().events().services()
Implementations§
Source§impl<'a> PersonsEventsServicesResource<'a>
impl<'a> PersonsEventsServicesResource<'a>
pub fn exchange_requests( &self, ) -> PersonsEventsServicesExchangeRequestsResource<'a>
Sourcepub fn list(
&self,
person_id: impl Display,
event_id: impl Display,
) -> Result<Vec<ServiceRequest>>
pub fn list( &self, person_id: impl Display, event_id: impl Display, ) -> Result<Vec<ServiceRequest>>
Get a person’s assignments in an event
GET /persons/{personId}/events/{eventId}/services
Returns the valid assignments of this person in a non-cancelled event, including both outstanding and confirmed assignments. Requires the current user to be this person or a super administrator. Unknown or cancelled events produce an empty list; related person and event objects are not enriched.
§Example
for service in client.persons().events().services().list(42, 42)? {
println!("{:?}", service.name);
}Trait Implementations§
Source§impl<'a> Clone for PersonsEventsServicesResource<'a>
impl<'a> Clone for PersonsEventsServicesResource<'a>
impl<'a> Copy for PersonsEventsServicesResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PersonsEventsServicesResource<'a>
impl<'a> !UnwindSafe for PersonsEventsServicesResource<'a>
impl<'a> Freeze for PersonsEventsServicesResource<'a>
impl<'a> Send for PersonsEventsServicesResource<'a>
impl<'a> Sync for PersonsEventsServicesResource<'a>
impl<'a> Unpin for PersonsEventsServicesResource<'a>
impl<'a> UnsafeUnpin for PersonsEventsServicesResource<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more