pub struct ProjectsResource { /* private fields */ }Expand description
Manages projects.
Implementations§
Source§impl ProjectsResource
impl ProjectsResource
Sourcepub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
pub async fn list(&self, query: &[(&str, &str)]) -> Result<JsonObject>
Returns the project list envelope (data + pagination).
Sourcepub async fn create(&self, body: impl Serialize) -> Result<JsonObject>
pub async fn create(&self, body: impl Serialize) -> Result<JsonObject>
Creates a project.
Sourcepub async fn get(&self, project: &str) -> Result<JsonObject>
pub async fn get(&self, project: &str) -> Result<JsonObject>
Returns a project by id or slug.
Sourcepub async fn update(
&self,
project: &str,
body: impl Serialize,
) -> Result<JsonObject>
pub async fn update( &self, project: &str, body: impl Serialize, ) -> Result<JsonObject>
Patches a project.
Sourcepub async fn activate(&self, project: &str) -> Result<JsonObject>
pub async fn activate(&self, project: &str) -> Result<JsonObject>
Activates a project.
Sourcepub async fn deactivate(&self, project: &str) -> Result<JsonObject>
pub async fn deactivate(&self, project: &str) -> Result<JsonObject>
Deactivates a project.
Sourcepub async fn event_handlers(&self, project: &str) -> Result<JsonObject>
pub async fn event_handlers(&self, project: &str) -> Result<JsonObject>
Returns the project’s event handlers.
Sourcepub async fn schedules(&self, project: &str) -> Result<JsonObject>
pub async fn schedules(&self, project: &str) -> Result<JsonObject>
Returns the project’s schedules.
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectsResource
impl !UnwindSafe for ProjectsResource
impl Freeze for ProjectsResource
impl Send for ProjectsResource
impl Sync for ProjectsResource
impl Unpin for ProjectsResource
impl UnsafeUnpin for ProjectsResource
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