pub struct Updater { /* private fields */ }Implementations§
Source§impl Updater
impl Updater
pub fn new(text: Rope, map: InputMap) -> Self
Sourcepub fn pin_input_to_ref(&mut self, id: &str, rev: &str)
pub fn pin_input_to_ref(&mut self, id: &str, rev: &str)
Pin an input based on it’s id to a specific rev.
Sourcepub fn unpin_input(&mut self, id: &str)
pub fn unpin_input(&mut self, id: &str)
Remove any ?ref= or ?rev= parameters from a specific input.
Sourcepub fn update_all_inputs_to_latest_semver(
&mut self,
id: Option<String>,
init: bool,
)
pub fn update_all_inputs_to_latest_semver( &mut self, id: Option<String>, init: bool, )
Update all inputs to a specific semver release, if a specific input is given, just update the single input.
pub fn get_changes(&self) -> String
Sourcepub fn change_input_to_rev(&mut self, input: &UpdateInput, rev: &str)
pub fn change_input_to_rev(&mut self, input: &UpdateInput, rev: &str)
Change a specific input to a specific rev.
Sourcepub fn query_and_update_all_inputs(&mut self, input: &UpdateInput, init: bool)
pub fn query_and_update_all_inputs(&mut self, input: &UpdateInput, init: bool)
Query a forge api for the latest release and update, if necessary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Updater
impl RefUnwindSafe for Updater
impl Send for Updater
impl Sync for Updater
impl Unpin for Updater
impl UnwindSafe for Updater
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