Skip to main content

ProjectService

Struct ProjectService 

Source
pub struct ProjectService { /* private fields */ }
Expand description

One selected service with the native fields needed by the first conversion boundary.

Implementations§

Source§

impl ProjectService

Source

pub const fn name(&self) -> &ProjectKey

Returns the service name and all contributing key spans.

Source

pub const fn provenance(&self) -> &MergeProvenance

Returns provenance for the complete effective service mapping.

Source

pub const fn hostname(&self) -> Option<&ProjectValue<Hostname>>

Returns the effective raw-preserving service hostname.

Source

pub const fn domainname(&self) -> Option<&ProjectValue<String>>

Returns the effective raw service domain name without DNS or runtime interpretation.

Source

pub const fn container_name(&self) -> Option<&ProjectValue<String>>

Returns the effective explicit runtime container name.

Source

pub const fn image(&self) -> Option<&ProjectValue<ImageReference>>

Returns the effective image reference.

Source

pub const fn platform(&self) -> Option<&ProjectValue<String>>

Returns the strict raw effective service platform string without OCI interpretation.

Source

pub const fn isolation(&self) -> Option<&ProjectValue<String>>

Returns the effective raw service isolation spelling.

Source

pub const fn mac_address(&self) -> Option<&ProjectValue<String>>

Returns the effective raw service MAC-address spelling.

Source

pub const fn uts(&self) -> Option<&ProjectValue<String>>

Returns the effective raw service UTS-mode spelling.

Source

pub const fn entrypoint(&self) -> Option<&ProjectValue<Entrypoint>>

Returns the effective entrypoint without normalizing scalar and list forms.

Source

pub const fn command(&self) -> Option<&ProjectValue<Command>>

Returns the effective command without normalizing scalar and list forms.

Source

pub const fn credential_spec( &self, ) -> Option<&ProjectValue<ProjectCredentialSpec>>

Returns the effective credential-spec mapping without resolving its references.

Source

pub const fn extends(&self) -> Option<&ProjectValue<ProjectExtends>>

Returns the effective raw extends directive without reference resolution.

Source

pub const fn provider(&self) -> Option<&ProjectValue<ProjectProvider>>

Returns effective provider configuration without execution or discovery.

Source

pub const fn post_start( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectPostStartHook>>>>

Returns effective post-start hooks in merge order without lifecycle execution or scheduling.

Source

pub const fn pre_stop( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectPreStopHook>>>>

Returns effective pre-stop hooks in merge order without lifecycle execution or scheduling.

Source

pub const fn pre_start( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectPreStartHook>>>>

Returns effective pre-start hooks in merge order without lifecycle execution or scheduling.

Source

pub const fn blkio_config(&self) -> Option<&ProjectValue<ProjectBlkioConfig>>

Returns effective block-I/O configuration without controller or runtime interpretation.

Source

pub const fn cgroup(&self) -> Option<&ProjectValue<CgroupNamespace>>

Returns the effective cgroup namespace without controller or runtime interpretation.

Source

pub const fn cgroup_parent(&self) -> Option<&ProjectValue<String>>

Returns the effective raw cgroup parent string without path or runtime interpretation.

Source

pub const fn runtime(&self) -> Option<&ProjectValue<String>>

Returns the strict raw service runtime string without runtime interpretation.

Source

pub const fn pull_refresh_after(&self) -> Option<&ProjectValue<String>>

Returns the strict raw effective pull-refresh interval without refresh interpretation.

Source

pub const fn attach(&self) -> Option<&ProjectValue<BooleanValue>>

Returns the effective attach choice without runtime interpretation.

Source

pub const fn init(&self) -> Option<&ProjectValue<BooleanValue>>

Returns the effective platform-specific init-process choice.

Source

pub const fn stdin_open(&self) -> Option<&ProjectValue<BooleanValue>>

Returns whether Compose should keep standard input open for the effective service.

Source

pub const fn tty(&self) -> Option<&ProjectValue<BooleanValue>>

Returns whether Compose should allocate a terminal for the effective service.

Source

pub const fn privileged(&self) -> Option<&ProjectValue<BooleanValue>>

Returns the effective privileged choice for the service.

Source

pub const fn use_api_socket(&self) -> Option<&ProjectValue<BooleanValue>>

Returns the effective API-socket choice without inspecting a local socket or environment.

Source

pub const fn environment(&self) -> Option<&ProjectValue<ProjectEnvironment>>

Returns environment entries normalized by key with per-entry syntax retained.

Source

pub const fn environment_files( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectEnvironmentFile>>>>

Returns effective service environment files in merge order with per-item provenance.

Source

pub const fn label_files( &self, ) -> Option<&ProjectValue<ProjectServiceLabelFiles>>

Returns effective scalar or ordered-list label-file paths. No file contents are read.

Source

pub const fn labels(&self) -> Option<&ProjectValue<ProjectLabels>>

Returns effective service labels normalized by key with entry syntax retained.

Source

pub const fn annotations(&self) -> Option<&ProjectValue<ProjectAnnotations>>

Returns effective service annotations keyed by name with ambiguous key-only entries retained.

Source

pub const fn extra_hosts(&self) -> Option<&ProjectValue<ProjectExtraHosts>>

Returns effective service host mappings with per-entry provenance and syntax.

Returns effective external links without resolving external services.

Returns effective legacy links without injecting dependency behavior.

Source

pub const fn storage_opt(&self) -> Option<&ProjectValue<Labels>>

Returns effective storage options without storage-driver interpretation.

Source

pub const fn models(&self) -> Option<&ProjectValue<ServiceModels>>

Returns effective raw model bindings without model-provider resolution.

Source

pub const fn gpus(&self) -> Option<&ProjectValue<Gpus>>

Returns the effective raw scalar GPU selector.

Source

pub const fn develop(&self) -> Option<&ProjectValue<Develop>>

Returns source provenance for the effective develop declaration.

Source

pub const fn user(&self) -> Option<&ProjectValue<UserSpec>>

Returns the effective container user and optional group spelling.

Source

pub const fn userns_mode(&self) -> Option<&ProjectValue<UserNamespaceMode>>

Returns the effective user-namespace mode.

Source

pub const fn group_add( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<String>>>>

Returns supplementary groups in effective merge order.

Source

pub const fn cap_add( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<CapabilityAddItem>>>>

Returns the effective capability-add sequence with full field and per-item provenance.

None means the field was omitted; Some with an empty vector means it was explicitly configured empty or reset.

Source

pub const fn cap_drop( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<CapabilityDropItem>>>>

Returns the effective capability-drop sequence with full field and per-item provenance.

None means the field was omitted; Some with an empty vector means it was explicitly configured empty or reset.

Source

pub const fn devices( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectDevice>>>>

Returns effective ordered mixed short/long service devices with complete provenance.

None means omission; Some with an empty vector means an explicit empty sequence or reset.

Source

pub const fn dns(&self) -> Option<&ProjectValue<ProjectDns>>

Returns effective raw service DNS servers with source form and provenance.

Source

pub const fn dns_options( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<String>>>>

Returns the effective ordered service DNS resolver options.

Omission remains None; an explicitly empty or reset sequence remains Some with no items. Exact duplicate items are retained and diagnosed.

Returns effective raw DNS search domains with source form and provenance.

Source

pub const fn expose( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectExposeItem>>>>

Returns the effective ordered service expose sequence.

Omission remains None; an explicitly empty or reset sequence remains Some with no items. Exact scalar identity includes both value text and YAML string/number kind.

Source

pub const fn security_options( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectSecurityOptionItem>>>>

Returns the effective ordered raw service security options.

Omission remains None; an explicitly empty or reset sequence remains Some with no items. Duplicates remain ordered evidence.

Source

pub const fn working_dir(&self) -> Option<&ProjectValue<String>>

Returns the effective container working-directory override.

Source

pub const fn read_only(&self) -> Option<&ProjectValue<BooleanValue>>

Returns the effective read-only root-filesystem choice.

Source

pub const fn pids_limit(&self) -> Option<&ProjectValue<PidsLimit>>

Returns the effective raw-preserving service PID limit.

Source

pub const fn cpu_count(&self) -> Option<&ProjectValue<CpuCount>>

Returns the effective CPU-count scalar without quota or runtime interpretation.

Source

pub const fn cpu_percent(&self) -> Option<&ProjectValue<CpuPercent>>

Returns the effective CPU-percentage scalar without CPU or runtime interpretation.

Source

pub const fn cpu_period(&self) -> Option<&ProjectValue<CpuPeriod>>

Returns the effective CPU-period scalar without CPU or runtime interpretation.

Source

pub const fn cpu_quota(&self) -> Option<&ProjectValue<CpuQuota>>

Returns the effective CPU-quota scalar without CPU or runtime interpretation.

Source

pub const fn cpu_rt_period(&self) -> Option<&ProjectValue<CpuRtPeriod>>

Returns the effective real-time CPU-period scalar without CPU or runtime interpretation.

Source

pub const fn cpu_rt_runtime(&self) -> Option<&ProjectValue<CpuRtRuntime>>

Returns the effective real-time CPU-runtime spelling.

Source

pub const fn cpu_shares(&self) -> Option<&ProjectValue<ServiceInteger>>

Returns effective relative CPU shares.

Source

pub const fn cpus(&self) -> Option<&ProjectValue<Cpus>>

Returns effective raw decimal CPU allocation.

Source

pub const fn cpuset(&self) -> Option<&ProjectValue<String>>

Returns effective raw CPU-set spelling.

Source

pub const fn device_cgroup_rules( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<String>>>>

Returns ordered effective device-cgroup rules, including duplicates.

Source

pub fn invalid_device_cgroup_rules(&self) -> &[ProjectInvalidServiceStringItem]

Returns malformed device-cgroup rule items retained with effective spans.

Source

pub const fn ipc(&self) -> Option<&ProjectValue<IpcMode>>

Returns the effective IPC mode.

Source

pub const fn mem_reservation(&self) -> Option<&ProjectValue<MemLimit>>

Returns the effective raw memory reservation.

Source

pub const fn mem_swappiness(&self) -> Option<&ProjectValue<ServiceInteger>>

Returns effective memory swappiness.

Source

pub const fn memswap_limit(&self) -> Option<&ProjectValue<MemswapLimit>>

Returns effective raw memory-plus-swap limit.

Source

pub const fn network_mode(&self) -> Option<&ProjectValue<NetworkMode>>

Returns the effective network mode.

Source

pub const fn oom_kill_disable(&self) -> Option<&ProjectValue<BooleanValue>>

Returns the effective OOM-kill setting.

Source

pub const fn oom_score_adj(&self) -> Option<&ProjectValue<ServiceInteger>>

Returns effective OOM-score adjustment.

Source

pub const fn pid(&self) -> Option<&ProjectValue<PidMode>>

Returns the effective PID mode.

Source

pub const fn scale(&self) -> Option<&ProjectValue<ServiceInteger>>

Returns effective scale spelling.

Source

pub const fn volumes_from( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<VolumesFrom>>>>

Returns ordered effective volumes_from references.

Source

pub fn invalid_volumes_from(&self) -> &[ProjectInvalidServiceStringItem]

Returns malformed volumes_from items retained with effective spans.

Source

pub const fn shm_size(&self) -> Option<&ProjectValue<ShmSize>>

Returns the effective raw-preserving service shared-memory size.

Source

pub const fn mem_limit(&self) -> Option<&ProjectValue<MemLimit>>

Returns the effective raw-preserving service memory limit.

Source

pub const fn tmpfs(&self) -> Option<&ProjectValue<ProjectTmpfs>>

Returns effective service-level temporary filesystems with source form and provenance.

Source

pub const fn sysctls(&self) -> Option<&ProjectValue<ProjectSysctls>>

Returns effective service sysctls with source form and per-entry provenance.

Source

pub const fn logging(&self) -> Option<&ProjectValue<ProjectLogging>>

Returns effective service logging configuration with nested provenance and recovery data.

Source

pub const fn ulimits(&self) -> Option<&ProjectValue<ProjectUlimits>>

Returns effective ordered service limits with nested and field-level merge provenance.

None means the field was omitted; an empty mapping remains present and can carry reset or override provenance.

Source

pub const fn pull_policy(&self) -> Option<&ProjectValue<PullPolicy>>

Returns the effective raw-preserving service image pull policy.

Source

pub const fn restart(&self) -> Option<&ProjectValue<RestartPolicy>>

Returns the effective service-level container restart policy.

Source

pub const fn stop_signal(&self) -> Option<&ProjectValue<String>>

Returns the effective explicitly authored service stop signal.

Source

pub const fn stop_grace_period(&self) -> Option<&ProjectValue<StopGracePeriod>>

Returns the effective raw-preserving service stop grace period.

Source

pub const fn healthcheck(&self) -> Option<&ProjectValue<ProjectHealthcheck>>

Returns the effective health check with per-field merge provenance.

Source

pub const fn build(&self) -> Option<&ProjectValue<ProjectBuild>>

Returns the effective build declaration with scalar and mapping context forms retained.

Only build context, arguments, Dockerfile, target, network, platforms, no-cache, pull, tags, labels, secrets, and ulimits are natively modeled. All sibling build fields remain available as source-addressable unmodeled references.

Source

pub const fn deploy(&self) -> Option<&ProjectValue<ProjectDeploy>>

Returns the effective deploy mapping without applying deployment semantics.

Source

pub const fn depends_on(&self) -> Option<&ProjectValue<ProjectDependsOn>>

Returns effective service dependencies with authored form and field-level provenance.

Source

pub const fn ports(&self) -> Option<&ProjectValue<Vec<ProjectValue<Port>>>>

Returns the effective port collection and per-item provenance.

Source

pub const fn volumes( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<VolumeMount>>>>

Returns the effective volume-mount collection and per-item provenance.

Source

pub const fn volume_mount_options( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectVolumeMountOptions>>>>

Returns effective long-mount option blocks with nested contributor provenance and retained evidence.

This companion view does not replace Self::volumes: the latter remains the stable syntax-preserving mount API. Short mounts have an empty option view at their matching index.

Source

pub const fn configs( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectGrant>>>>

Returns effective service config grants with syntax and field-level provenance retained.

Source

pub const fn secrets( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectGrant>>>>

Returns effective service secret grants with syntax and field-level provenance retained.

Source

pub const fn networks(&self) -> Option<&ProjectValue<ServiceNetworks>>

Returns effective network attachments with short and long forms retained.

Source

pub const fn profiles(&self) -> Option<&ProjectValue<Vec<ProjectValue<String>>>>

Returns effective profile names and their individual provenance.

Source

pub fn unmodeled_fields(&self) -> &[ProjectFieldReference]

Returns fields retained outside this initial native project-view boundary.

Trait Implementations§

Source§

impl Clone for ProjectService

Source§

fn clone(&self) -> ProjectService

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProjectService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ProjectService

Source§

impl PartialEq for ProjectService

Source§

fn eq(&self, other: &ProjectService) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ProjectService

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.