pub struct RefgetConfig {
pub circular_supported: bool,
pub algorithms: Vec<String>,
pub subsequence_limit: u64,
pub circular_sequences: Vec<String>,
pub service_info: ServiceInfoConfig,
}Expand description
Configuration for the refget server.
Loaded from a YAML config file via --config or constructed with defaults.
§Example YAML
# Required refget protocol settings
circular_supported: true
algorithms:
- md5
- ga4gh
subsequence_limit: 0 # 0 = no limit
# Sequences to treat as circular (by FASTA name)
circular_sequences:
- NC_001422.1
- chrM
# Optional GA4GH service-info fields
service_info:
organization:
name: "My Organization"
url: "https://example.org"
contact_url: "mailto:admin@example.org"
documentation_url: "https://example.org/docs"
environment: "production"Fields§
§circular_supported: boolWhether circular sequence retrieval is supported.
algorithms: Vec<String>Supported hash algorithms.
subsequence_limit: u64Maximum length of a subsequence request (0 = no limit).
circular_sequences: Vec<String>Sequence names that should be treated as circular.
service_info: ServiceInfoConfigOptional GA4GH service-info fields.
Trait Implementations§
Source§impl Clone for RefgetConfig
impl Clone for RefgetConfig
Source§fn clone(&self) -> RefgetConfig
fn clone(&self) -> RefgetConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefgetConfig
impl Debug for RefgetConfig
Source§impl Default for RefgetConfig
impl Default for RefgetConfig
Source§impl<'de> Deserialize<'de> for RefgetConfigwhere
RefgetConfig: Default,
impl<'de> Deserialize<'de> for RefgetConfigwhere
RefgetConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RefgetConfig
impl RefUnwindSafe for RefgetConfig
impl Send for RefgetConfig
impl Sync for RefgetConfig
impl Unpin for RefgetConfig
impl UnsafeUnpin for RefgetConfig
impl UnwindSafe for RefgetConfig
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