pub struct CreateInput {
pub task: String,
pub projects: Vec<NativePath>,
pub repositories: Vec<RepositoryInput>,
pub workspace: Option<NativePath>,
pub checkout: bool,
pub no_fetch: bool,
pub remote: Option<String>,
pub from: Option<String>,
}Expand description
Task branch, repository selectors and starting revisions for creation or checkout.
Fields§
§task: StringTask selected for this operation.
projects: Vec<NativePath>Tracked project references or explicit repository paths.
repositories: Vec<RepositoryInput>Backing repositories selected for membership.
workspace: Option<NativePath>Explicit workspace directory containing .workyard.
checkout: boolReuse an existing target branch when available.
no_fetch: boolSkip fetching from remotes.
remote: Option<String>Default remote for the supplied repositories.
from: Option<String>Starting reference for new branches.
Implementations§
Source§impl CreateInput
impl CreateInput
Sourcepub fn normalize(self) -> Result<CreateRequest, Problem>
pub fn normalize(self) -> Result<CreateRequest, Problem>
Resolve workspace and project selections into a core creation request.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateInput
impl<'de> Deserialize<'de> for CreateInput
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CreateInput
impl JsonSchema for CreateInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for CreateInput
impl Freeze for CreateInput
impl Move for CreateInput
impl RefUnwindSafe for CreateInput
impl Send for CreateInput
impl Sync for CreateInput
impl Unpin for CreateInput
impl UnsafeUnpin for CreateInput
impl UnwindSafe for CreateInput
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