pub struct CraftRecipeFull {Show 33 fields
pub self_link: Option<Url>,
pub web_link: Option<Url>,
pub resource_type_link: Option<Url>,
pub http_etag: Option<String>,
pub auto_build: bool,
pub auto_build_channels: Vec<String>,
pub build_path: String,
pub builds_collection_link: Url,
pub can_upload_to_store: bool,
pub completed_builds_collection_link: Url,
pub date_created: DateTime<Utc>,
pub date_last_modified: DateTime<Utc>,
pub description: String,
pub failed_build_requests_collection_link: Url,
pub fetch_service_policy: FetchServicePolicy,
pub git_path: String,
pub git_ref_link: Url,
pub git_repository_link: Url,
pub git_repository_url: Url,
pub information_type: InformationType,
pub is_stale: bool,
pub name: String,
pub owner_link: Url,
pub pending_build_requests_collection_link: Url,
pub pending_builds_collection_link: Url,
pub private: bool,
pub project_link: Url,
pub registrant_link: Url,
pub require_virtualized: bool,
pub store_channels: Vec<String>,
pub store_name: String,
pub store_upload: String,
pub use_fetch_service: String,
}Expand description
Representation of the craft_recipe-full resource
Fields§
§self_link: Option<Url>The canonical link to this resource.
web_link: Option<Url>The canonical human-addressable web link to this resource.
resource_type_link: Option<Url>The link to the WADL description of this resource.
http_etag: Option<String>The value of the HTTP ETag for this resource.
auto_build: boolAutomatically build when branch changes
Whether this craft recipe is built automatically when the branch containing its craft.yaml recipe changes.
auto_build_channels: Vec<String>Source snap channels for automatic builds
A dictionary mapping snap names to channels to use when building this craft recipe. Currently only ‘core’, ‘core18’, ‘core20’, and ‘sourcecraft’ keys are supported.
build_path: StringBuild path
Subdirectory within the branch containing craft.yaml.
builds_collection_link: UrlAll builds of this craft recipe.
All builds of this craft recipe, sorted in descending order of finishing (or starting if not completed successfully).
can_upload_to_store: boolCan upload to the CraftStore
Whether everything is set up to allow uploading builds of this craftrecipe to the CraftStore.
completed_builds_collection_link: UrlCompleted builds of this craft recipe.
Completed builds of this craft recipe, sorted in descending order of finishing.
date_created: DateTime<Utc>Date created
date_last_modified: DateTime<Utc>Date last modified
description: StringDescription
A description of the craft recipe.
failed_build_requests_collection_link: UrlFailed build requests for this craft recipe.
fetch_service_policy: FetchServicePolicyFetch service policy
Which policy to use when using the fetch service. Ignored if use_fetch_service flag is False.
git_path: StringGit branch path
The path of the Git branch containing a sourcecraft.yaml recipe.
git_ref_link: UrlGit branch
The Git branch containing a craft.yaml recipe.
git_repository_link: UrlGit repository
A Git repository with a branch containing a sourcecraft.yaml recipe.
git_repository_url: UrlGit repository URL
The URL of a Git repository with a branch containing a sourcecraft.yaml at the top level.
information_type: InformationTypeInformation type
The type of information contained in this craft recipe.
is_stale: boolCraft recipe is stale and is due to be rebuilt.
name: StringCraft recipe name
The name of the craft recipe.
owner_link: UrlOwner
The owner of this craft recipe.
pending_build_requests_collection_link: UrlPending build requests for this craft recipe.
pending_builds_collection_link: UrlPending builds of this craft recipe.
Pending builds of this craft recipe, sorted in descending order of creation.
private: boolPrivate
Whether this craft recipe is private.
project_link: UrlThe project that this craft recipe is associated with
registrant_link: UrlRegistrant
The person who registered this craft recipe.
require_virtualized: boolRequire virtualized builders
Only build this craft recipe on virtual builders.
store_channels: Vec<String>Store channels
Channels to release this craft to after uploading it to the store. A channel is defined by a combination of an optional track, a risk, and an optional branch, e.g. ‘2.1/stable/fix-123’, ‘2.1/stable’, ‘stable/fix-123’, or ‘stable’.
store_name: StringRegistered store name
The registered name of this craft in the store.
store_upload: StringAutomatically upload to store
Whether builds of this craft recipe are automatically uploaded to the store.
use_fetch_service: StringUse fetch service
If set, Craft builds will use the fetch-service instead of the builder-proxy to access external resources.
Implementations§
Source§impl CraftRecipeFull
impl CraftRecipeFull
Sourcepub fn self_(&self) -> Option<CraftRecipe>
pub fn self_(&self) -> Option<CraftRecipe>
The canonical link to this resource.
pub fn set_self_(&mut self, value: Option<CraftRecipe>)
Sourcepub fn builds<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, CraftRecipeBuildPage>, Error>
pub fn builds<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, CraftRecipeBuildPage>, Error>
All builds of this craft recipe.
All builds of this craft recipe, sorted in descending order of finishing (or starting if not completed successfully).
Sourcepub fn completed_builds<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, CraftRecipeBuildPage>, Error>
pub fn completed_builds<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, CraftRecipeBuildPage>, Error>
Completed builds of this craft recipe.
Completed builds of this craft recipe, sorted in descending order of finishing.
Sourcepub fn failed_build_requests<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, CraftRecipeBuildRequestPage>, Error>
pub fn failed_build_requests<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, CraftRecipeBuildRequestPage>, Error>
Failed build requests for this craft recipe.
pub fn set_git_ref(&mut self, value: GitRef)
Sourcepub fn git_repository(&self) -> GitRepository
pub fn git_repository(&self) -> GitRepository
Git repository
A Git repository with a branch containing a sourcecraft.yaml recipe.
pub fn set_git_repository(&mut self, value: GitRepository)
pub fn set_owner(&mut self, value: Person)
Sourcepub fn pending_build_requests<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, CraftRecipeBuildRequestPage>, Error>
pub fn pending_build_requests<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, CraftRecipeBuildRequestPage>, Error>
Pending build requests for this craft recipe.
Sourcepub fn pending_builds<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, CraftRecipeBuildPage>, Error>
pub fn pending_builds<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, CraftRecipeBuildPage>, Error>
Pending builds of this craft recipe.
Pending builds of this craft recipe, sorted in descending order of creation.
pub fn set_project(&mut self, value: Project)
Sourcepub fn registrant(&self) -> Person
pub fn registrant(&self) -> Person
Registrant
The person who registered this craft recipe.
pub fn set_registrant(&mut self, value: Person)
Trait Implementations§
Source§impl Clone for CraftRecipeFull
impl Clone for CraftRecipeFull
Source§fn clone(&self) -> CraftRecipeFull
fn clone(&self) -> CraftRecipeFull
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more