pub struct FerryConfig {
pub schema_version: u32,
pub platforms: Vec<TargetPlatform>,
pub app: AppConfig,
pub android: AndroidConfig,
pub ios: IosConfig,
pub capabilities: CapabilitiesConfig,
pub permissions: PermissionsConfig,
pub extensions: ExtensionsConfig,
}Expand description
Complete, versioned ferry.toml document.
Fields§
§schema_version: u32Configuration schema used by this file.
platforms: Vec<TargetPlatform>Platforms generated and validated for this project.
app: AppConfigApplication identity and presentation settings.
android: AndroidConfigAndroid build settings.
ios: IosConfigApple platform build settings.
capabilities: CapabilitiesConfigRuntime capabilities compiled into the application.
permissions: PermissionsConfigRuntime permissions with required user-facing purpose text.
extensions: ExtensionsConfigPlatform extension targets generated with the application.
Implementations§
Source§impl FerryConfig
impl FerryConfig
Sourcepub fn starter(name: impl Into<String>, identifier: impl Into<String>) -> Self
pub fn starter(name: impl Into<String>, identifier: impl Into<String>) -> Self
Create a configuration with starter-friendly defaults.
Sourcepub fn parse(source: &str) -> Result<Self, ConfigError>
pub fn parse(source: &str) -> Result<Self, ConfigError>
Parse a strict TOML document.
§Errors
Returns ConfigError::Parse when the document is malformed or contains unknown fields.
Sourcepub fn load(path: &Utf8Path) -> Result<Self, ConfigError>
pub fn load(path: &Utf8Path) -> Result<Self, ConfigError>
Read and validate a configuration file.
§Errors
Returns an I/O, parse, or semantic-validation error.
Sourcepub fn to_pretty_toml(&self) -> Result<String, ConfigError>
pub fn to_pretty_toml(&self) -> Result<String, ConfigError>
Serialize a deterministic, human-readable TOML document.
§Errors
Returns ConfigError::Serialize if the configuration cannot be encoded.
Sourcepub fn json_schema() -> Result<String, ConfigError>
pub fn json_schema() -> Result<String, ConfigError>
Return the stable JSON Schema for editor integration.
§Errors
Returns ConfigError::Schema if schema serialization fails.
Sourcepub fn validate(&self) -> Vec<ValidationIssue>
pub fn validate(&self) -> Vec<ValidationIssue>
Return every semantic validation issue rather than stopping at the first one.
Sourcepub fn validate_or_error(&self) -> Result<(), ConfigError>
pub fn validate_or_error(&self) -> Result<(), ConfigError>
Fail when semantic validation reports any issue.
§Errors
Returns ConfigError::Validation containing every semantic issue.
Trait Implementations§
Source§impl Clone for FerryConfig
impl Clone for FerryConfig
Source§impl Debug for FerryConfig
impl Debug for FerryConfig
Source§impl<'de> Deserialize<'de> for FerryConfig
impl<'de> Deserialize<'de> for FerryConfig
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>,
Source§impl JsonSchema for FerryConfig
impl JsonSchema for FerryConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more