constant

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueOf

func ValueOf[T Constant[T]]() T

ValueOf gives the default value of a constant from its type. It's helpful when constructing constants as variants in a one-of. Note that empty structs are marshalled by default. Usage: constant.ValueOf[constant.Foo]()

Types

type APIKey

type APIKey string // Always "api_key"

func (APIKey) Default

func (c APIKey) Default() APIKey

func (APIKey) MarshalJSON

func (c APIKey) MarshalJSON() ([]byte, error)

type All

type All string // Always "all"

func (All) Default

func (c All) Default() All

func (All) MarshalJSON

func (c All) MarshalJSON() ([]byte, error)

type Base64

type Base64 string // Always "base64"

func (Base64) Default

func (c Base64) Default() Base64

func (Base64) MarshalJSON

func (c Base64) MarshalJSON() ([]byte, error)

type Boltz2_1

type Boltz2_1 string // Always "boltz-2.1"

func (Boltz2_1) Default

func (c Boltz2_1) Default() Boltz2_1

func (Boltz2_1) MarshalJSON

func (c Boltz2_1) MarshalJSON() ([]byte, error)

type BoltzCurated

type BoltzCurated string // Always "boltz_curated"

func (BoltzCurated) Default

func (c BoltzCurated) Default() BoltzCurated

func (BoltzCurated) MarshalJSON

func (c BoltzCurated) MarshalJSON() ([]byte, error)

type BoltzProteinDesign

type BoltzProteinDesign string // Always "boltz-protein-design"

func (BoltzProteinDesign) Default

func (BoltzProteinDesign) MarshalJSON

func (c BoltzProteinDesign) MarshalJSON() ([]byte, error)

type BoltzProteinScreen

type BoltzProteinScreen string // Always "boltz-protein-screen"

func (BoltzProteinScreen) Default

func (BoltzProteinScreen) MarshalJSON

func (c BoltzProteinScreen) MarshalJSON() ([]byte, error)

type BoltzSmDesign

type BoltzSmDesign string // Always "boltz-sm-design"

func (BoltzSmDesign) Default

func (c BoltzSmDesign) Default() BoltzSmDesign

func (BoltzSmDesign) MarshalJSON

func (c BoltzSmDesign) MarshalJSON() ([]byte, error)

type BoltzSmScreen

type BoltzSmScreen string // Always "boltz-sm-screen"

func (BoltzSmScreen) Default

func (c BoltzSmScreen) Default() BoltzSmScreen

func (BoltzSmScreen) MarshalJSON

func (c BoltzSmScreen) MarshalJSON() ([]byte, error)

type Ccd

type Ccd string // Always "ccd"

func (Ccd) Default

func (c Ccd) Default() Ccd

func (Ccd) MarshalJSON

func (c Ccd) MarshalJSON() ([]byte, error)

type ChemicalXCif

type ChemicalXCif string // Always "chemical/x-cif"

func (ChemicalXCif) Default

func (c ChemicalXCif) Default() ChemicalXCif

func (ChemicalXCif) MarshalJSON

func (c ChemicalXCif) MarshalJSON() ([]byte, error)

type Constant

type Constant[T any] interface {
	Default() T
}

type Contact

type Contact string // Always "contact"

func (Contact) Default

func (c Contact) Default() Contact

func (Contact) MarshalJSON

func (c Contact) MarshalJSON() ([]byte, error)

type DesignedProtein

type DesignedProtein string // Always "designed_protein"

func (DesignedProtein) Default

func (c DesignedProtein) Default() DesignedProtein

func (DesignedProtein) MarshalJSON

func (c DesignedProtein) MarshalJSON() ([]byte, error)

type Dna

type Dna string // Always "dna"

func (Dna) Default

func (c Dna) Default() Dna

func (Dna) MarshalJSON

func (c Dna) MarshalJSON() ([]byte, error)

type Insertion

type Insertion string // Always "insertion"

func (Insertion) Default

func (c Insertion) Default() Insertion

func (Insertion) MarshalJSON

func (c Insertion) MarshalJSON() ([]byte, error)

type Ligand

type Ligand string // Always "ligand"

func (Ligand) Default

func (c Ligand) Default() Ligand

func (Ligand) MarshalJSON

func (c Ligand) MarshalJSON() ([]byte, error)

type LigandAtom

type LigandAtom string // Always "ligand_atom"

func (LigandAtom) Default

func (c LigandAtom) Default() LigandAtom

func (LigandAtom) MarshalJSON

func (c LigandAtom) MarshalJSON() ([]byte, error)

type LigandCcd

type LigandCcd string // Always "ligand_ccd"

func (LigandCcd) Default

func (c LigandCcd) Default() LigandCcd

func (LigandCcd) MarshalJSON

func (c LigandCcd) MarshalJSON() ([]byte, error)

type LigandContact

type LigandContact string // Always "ligand_contact"

func (LigandContact) Default

func (c LigandContact) Default() LigandContact

func (LigandContact) MarshalJSON

func (c LigandContact) MarshalJSON() ([]byte, error)

type LigandProteinBinding

type LigandProteinBinding string // Always "ligand_protein_binding"

func (LigandProteinBinding) Default

func (LigandProteinBinding) MarshalJSON

func (c LigandProteinBinding) MarshalJSON() ([]byte, error)

type LigandProteinBindingMetrics

type LigandProteinBindingMetrics string // Always "ligand_protein_binding_metrics"

func (LigandProteinBindingMetrics) Default

func (LigandProteinBindingMetrics) MarshalJSON

func (c LigandProteinBindingMetrics) MarshalJSON() ([]byte, error)

type LigandSmiles

type LigandSmiles string // Always "ligand_smiles"

func (LigandSmiles) Default

func (c LigandSmiles) Default() LigandSmiles

func (LigandSmiles) MarshalJSON

func (c LigandSmiles) MarshalJSON() ([]byte, error)

type LipinskiFilter

type LipinskiFilter string // Always "lipinski_filter"

func (LipinskiFilter) Default

func (c LipinskiFilter) Default() LipinskiFilter

func (LipinskiFilter) MarshalJSON

func (c LipinskiFilter) MarshalJSON() ([]byte, error)

type NoTemplate

type NoTemplate string // Always "no_template"

func (NoTemplate) Default

func (c NoTemplate) Default() NoTemplate

func (NoTemplate) MarshalJSON

func (c NoTemplate) MarshalJSON() ([]byte, error)

type Pocket

type Pocket string // Always "pocket"

func (Pocket) Default

func (c Pocket) Default() Pocket

func (Pocket) MarshalJSON

func (c Pocket) MarshalJSON() ([]byte, error)

type Polymer

type Polymer string // Always "polymer"

func (Polymer) Default

func (c Polymer) Default() Polymer

func (Polymer) MarshalJSON

func (c Polymer) MarshalJSON() ([]byte, error)

type PolymerAtom

type PolymerAtom string // Always "polymer_atom"

func (PolymerAtom) Default

func (c PolymerAtom) Default() PolymerAtom

func (PolymerAtom) MarshalJSON

func (c PolymerAtom) MarshalJSON() ([]byte, error)

type PolymerContact

type PolymerContact string // Always "polymer_contact"

func (PolymerContact) Default

func (c PolymerContact) Default() PolymerContact

func (PolymerContact) MarshalJSON

func (c PolymerContact) MarshalJSON() ([]byte, error)

type Protein

type Protein string // Always "protein"

func (Protein) Default

func (c Protein) Default() Protein

func (Protein) MarshalJSON

func (c Protein) MarshalJSON() ([]byte, error)

type ProteinProteinBinding

type ProteinProteinBinding string // Always "protein_protein_binding"

func (ProteinProteinBinding) Default

func (ProteinProteinBinding) MarshalJSON

func (c ProteinProteinBinding) MarshalJSON() ([]byte, error)

type ProteinProteinBindingMetrics

type ProteinProteinBindingMetrics string // Always "protein_protein_binding_metrics"

func (ProteinProteinBindingMetrics) Default

func (ProteinProteinBindingMetrics) MarshalJSON

func (c ProteinProteinBindingMetrics) MarshalJSON() ([]byte, error)

type RdkitDescriptorFilter

type RdkitDescriptorFilter string // Always "rdkit_descriptor_filter"

func (RdkitDescriptorFilter) Default

func (RdkitDescriptorFilter) MarshalJSON

func (c RdkitDescriptorFilter) MarshalJSON() ([]byte, error)

type Replacement

type Replacement string // Always "replacement"

func (Replacement) Default

func (c Replacement) Default() Replacement

func (Replacement) MarshalJSON

func (c Replacement) MarshalJSON() ([]byte, error)

type Rna

type Rna string // Always "rna"

func (Rna) Default

func (c Rna) Default() Rna

func (Rna) MarshalJSON

func (c Rna) MarshalJSON() ([]byte, error)

type SmartsCatalogFilter

type SmartsCatalogFilter string // Always "smarts_catalog_filter"

func (SmartsCatalogFilter) Default

func (SmartsCatalogFilter) MarshalJSON

func (c SmartsCatalogFilter) MarshalJSON() ([]byte, error)

type SmartsCustomFilter

type SmartsCustomFilter string // Always "smarts_custom_filter"

func (SmartsCustomFilter) Default

func (SmartsCustomFilter) MarshalJSON

func (c SmartsCustomFilter) MarshalJSON() ([]byte, error)

type Smiles

type Smiles string // Always "smiles"

func (Smiles) Default

func (c Smiles) Default() Smiles

func (Smiles) MarshalJSON

func (c Smiles) MarshalJSON() ([]byte, error)

type SmilesRegexFilter

type SmilesRegexFilter string // Always "smiles_regex_filter"

func (SmilesRegexFilter) Default

func (SmilesRegexFilter) MarshalJSON

func (c SmilesRegexFilter) MarshalJSON() ([]byte, error)

type StructureTemplate

type StructureTemplate string // Always "structure_template"

func (StructureTemplate) Default

func (StructureTemplate) MarshalJSON

func (c StructureTemplate) MarshalJSON() ([]byte, error)

type URL

type URL string // Always "url"

func (URL) Default

func (c URL) Default() URL

func (URL) MarshalJSON

func (c URL) MarshalJSON() ([]byte, error)

type User

type User string // Always "user"

func (User) Default

func (c User) Default() User

func (User) MarshalJSON

func (c User) MarshalJSON() ([]byte, error)

type Workspace

type Workspace string // Always "workspace"

func (Workspace) Default

func (c Workspace) Default() Workspace

func (Workspace) MarshalJSON

func (c Workspace) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL