pub enum ProjectsCommand {
Get(ProjectGetRequest),
Create(ProjectCreateRequest),
List(ProjectsListRequest),
Update(ProjectPutRequest),
Delete(ProjectsDeleteRequest),
}
Variants§
Get(ProjectGetRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Retrieve a project by the provided identifier
Returns: ProjectResponse
Create(ProjectCreateRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Creates a new project in the provided organization using the given data
Returns: ProjectResponse
List(ProjectsListRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Lists all projects of the given organization
Returns: ProjectsResponse
Update(ProjectPutRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Updates an existing project with the provided ID using the given data
Returns: ProjectResponse
Delete(ProjectsDeleteRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Deletes all the projects whose IDs match the provided ones
Returns: ProjectsDeleteResponse
Trait Implementations§
Source§impl Debug for ProjectsCommand
impl Debug for ProjectsCommand
Source§impl<'de> Deserialize<'de> for ProjectsCommand
impl<'de> Deserialize<'de> for ProjectsCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ProjectsCommand
impl JsonSchema for ProjectsCommand
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for ProjectsCommand
impl RefUnwindSafe for ProjectsCommand
impl Send for ProjectsCommand
impl Sync for ProjectsCommand
impl Unpin for ProjectsCommand
impl UnwindSafe for ProjectsCommand
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more