# This file generated by `mix dagger.gen`. Please DO NOT EDIT.
defmodule Dagger.CacheVolume do
  @moduledoc "A directory whose contents persist across runs."
  use Dagger.QueryBuilder
  @type t() :: %__MODULE__{}
  defstruct [:selection, :client]

  (
    @doc "A unique identifier for this CacheVolume."
    @spec id(t()) :: {:ok, Dagger.CacheVolumeID.t()} | {:error, term()}
    def id(%__MODULE__{} = cache_volume) do
      selection = select(cache_volume.selection, "id")
      execute(selection, cache_volume.client)
    end
  )
end
