pub struct ArtifactBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ArtifactBuilder<S>
impl<S: State> ArtifactBuilder<S>
Sourcepub fn build(self) -> Artifactwhere
S: IsComplete,
pub fn build(self) -> Artifactwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn artifact_type(self, value: String) -> ArtifactBuilder<SetArtifactType<S>>where
S::ArtifactType: IsUnset,
pub fn artifact_type(self, value: String) -> ArtifactBuilder<SetArtifactType<S>>where
S::ArtifactType: IsUnset,
Required.
What kind of artifact this is (e.g. an installer or package name).
Sourcepub fn device_id(self, value: Uuid) -> ArtifactBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
pub fn device_id(self, value: Uuid) -> ArtifactBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
Sourcepub fn maybe_device_id(
self,
value: Option<Uuid>,
) -> ArtifactBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
pub fn maybe_device_id(
self,
value: Option<Uuid>,
) -> ArtifactBuilder<SetDeviceId<S>>where
S::DeviceId: IsUnset,
Sourcepub fn download_url(self, value: String) -> ArtifactBuilder<SetDownloadUrl<S>>where
S::DownloadUrl: IsUnset,
pub fn download_url(self, value: String) -> ArtifactBuilder<SetDownloadUrl<S>>where
S::DownloadUrl: IsUnset,
Required.
URL the artifact can be downloaded from.
Sourcepub fn id(self, value: Uuid) -> ArtifactBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: Uuid) -> ArtifactBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Unique identifier of the artifact.
Sourcepub fn platform(self, value: String) -> ArtifactBuilder<SetPlatform<S>>where
S::Platform: IsUnset,
pub fn platform(self, value: String) -> ArtifactBuilder<SetPlatform<S>>where
S::Platform: IsUnset,
Required.
The platform the artifact targets (e.g. an OS or architecture name).
Sourcepub fn version_id(self, value: Uuid) -> ArtifactBuilder<SetVersionId<S>>where
S::VersionId: IsUnset,
pub fn version_id(self, value: Uuid) -> ArtifactBuilder<SetVersionId<S>>where
S::VersionId: IsUnset,
Sourcepub fn maybe_version_id(
self,
value: Option<Uuid>,
) -> ArtifactBuilder<SetVersionId<S>>where
S::VersionId: IsUnset,
pub fn maybe_version_id(
self,
value: Option<Uuid>,
) -> ArtifactBuilder<SetVersionId<S>>where
S::VersionId: IsUnset,
Sourcepub fn version_range_pattern(
self,
value: String,
) -> ArtifactBuilder<SetVersionRangePattern<S>>where
S::VersionRangePattern: IsUnset,
pub fn version_range_pattern(
self,
value: String,
) -> ArtifactBuilder<SetVersionRangePattern<S>>where
S::VersionRangePattern: IsUnset,
Sourcepub fn maybe_version_range_pattern(
self,
value: Option<String>,
) -> ArtifactBuilder<SetVersionRangePattern<S>>where
S::VersionRangePattern: IsUnset,
pub fn maybe_version_range_pattern(
self,
value: Option<String>,
) -> ArtifactBuilder<SetVersionRangePattern<S>>where
S::VersionRangePattern: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ArtifactBuilder<S>
impl<S> RefUnwindSafe for ArtifactBuilder<S>
impl<S> Send for ArtifactBuilder<S>
impl<S> Sync for ArtifactBuilder<S>
impl<S> Unpin for ArtifactBuilder<S>
impl<S> UnsafeUnpin for ArtifactBuilder<S>
impl<S> UnwindSafe for ArtifactBuilder<S>
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