pub struct UpdateGenerator { /* private fields */ }
Expand description
Update generation engine
Implementations§
Source§impl UpdateGenerator
impl UpdateGenerator
Sourcepub fn new_with_config(config: UpdateConfig) -> Self
pub fn new_with_config(config: UpdateConfig) -> Self
Create a new update generator with custom configuration
Sourcepub fn create_update(
&mut self,
original_xml: &str,
updated_xml: &str,
original_message_id: &str,
) -> Result<UpdateReleaseMessage, BuildError>
pub fn create_update( &mut self, original_xml: &str, updated_xml: &str, original_message_id: &str, ) -> Result<UpdateReleaseMessage, BuildError>
Generate an UpdateReleaseMessage from two DDEX messages
Sourcepub fn apply_update(
&self,
base_xml: &str,
update: &UpdateReleaseMessage,
) -> Result<String, BuildError>
pub fn apply_update( &self, base_xml: &str, update: &UpdateReleaseMessage, ) -> Result<String, BuildError>
Apply an update to a base message to produce a new complete message
Sourcepub fn validate_update(
&self,
update: &UpdateReleaseMessage,
) -> Result<ValidationStatus, BuildError>
pub fn validate_update( &self, update: &UpdateReleaseMessage, ) -> Result<ValidationStatus, BuildError>
Validate an update for consistency and safety
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UpdateGenerator
impl RefUnwindSafe for UpdateGenerator
impl Send for UpdateGenerator
impl Sync for UpdateGenerator
impl Unpin for UpdateGenerator
impl UnwindSafe for UpdateGenerator
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more