pub struct ProgramsApi { /* private fields */ }Expand description
Program (curriculum) management
Implementations§
Source§impl ProgramsApi
impl ProgramsApi
Sourcepub async fn apply_program(
&self,
program_id: &str,
body: &ApplyProgramRequest,
) -> Result<ApplyProgramResponse>
pub async fn apply_program( &self, program_id: &str, body: &ApplyProgramRequest, ) -> Result<ApplyProgramResponse>
Apply program to session (create todos)
POST /api/v1/programs/{programId}/apply
Required scopes: sessions:write.
Sourcepub async fn create(&self, body: &CreateProgramRequest) -> Result<Program>
pub async fn create(&self, body: &CreateProgramRequest) -> Result<Program>
Create a program (curriculum)
POST /api/v1/programs
Required scopes: agents:write.
Sourcepub async fn get(&self, program_id: &str) -> Result<Program>
pub async fn get(&self, program_id: &str) -> Result<Program>
Get program
GET /api/v1/programs/{programId}
Required scopes: agents:read.
Sourcepub async fn list(&self) -> Result<ListProgramsResponse>
pub async fn list(&self) -> Result<ListProgramsResponse>
List programs
GET /api/v1/programs
Required scopes: agents:read.
Trait Implementations§
Source§impl Clone for ProgramsApi
impl Clone for ProgramsApi
Source§fn clone(&self) -> ProgramsApi
fn clone(&self) -> ProgramsApi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ProgramsApi
impl !UnwindSafe for ProgramsApi
impl Freeze for ProgramsApi
impl Send for ProgramsApi
impl Sync for ProgramsApi
impl Unpin for ProgramsApi
impl UnsafeUnpin for ProgramsApi
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