pub struct TranslationOutput {
pub toml: String,
pub warnings: Vec<CompatWarning>,
pub unsupported: Vec<UnsupportedFeature>,
}Expand description
Result of translating pproxy-compatible input.
Fields§
§toml: StringGenerated Eggress TOML configuration.
warnings: Vec<CompatWarning>Warnings about partial or degraded behavior.
unsupported: Vec<UnsupportedFeature>Features that are explicitly unsupported.
Implementations§
Source§impl TranslationOutput
impl TranslationOutput
pub fn new(toml: String) -> Self
pub fn with_warning( self, category: &'static str, message: impl Into<String>, ) -> Self
pub fn with_unsupported( self, feature: &'static str, detail: impl Into<String>, ) -> Self
pub fn with_warnings(self, warnings: Vec<CompatWarning>) -> Self
pub fn with_unsupported_features( self, features: Vec<UnsupportedFeature>, ) -> Self
pub fn has_unsupported(&self) -> bool
pub fn warnings_to_string(&self) -> String
Trait Implementations§
Source§impl Clone for TranslationOutput
impl Clone for TranslationOutput
Source§fn clone(&self) -> TranslationOutput
fn clone(&self) -> TranslationOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TranslationOutput
impl RefUnwindSafe for TranslationOutput
impl Send for TranslationOutput
impl Sync for TranslationOutput
impl Unpin for TranslationOutput
impl UnsafeUnpin for TranslationOutput
impl UnwindSafe for TranslationOutput
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