Struct toml_sync_lib::TomlSync
source · [−]pub struct TomlSync {
pub config: SyncConfig,
pub target_manifests: HashMap<String, Manifest>,
pub source_manifests: HashMap<String, Manifest>,
pub source_versions: HashMap<String, Vec<VersionInfo>>,
pub target_versions: HashMap<String, Vec<VersionInfo>>,
}Fields
config: SyncConfigtarget_manifests: HashMap<String, Manifest>source_manifests: HashMap<String, Manifest>source_versions: HashMap<String, Vec<VersionInfo>>target_versions: HashMap<String, Vec<VersionInfo>>Implementations
sourceimpl TomlSync
impl TomlSync
pub fn new(config: SyncConfig) -> Self
pub async fn scan(&mut self)
pub fn show_diff(&self)
pub fn extract_dependencies(
map: &mut HashMap<String, Vec<VersionInfo>>,
path: String,
manifest: &Manifest
)
pub async fn load_tomls(&self, directory: String) -> Vec<(String, Manifest)>
Auto Trait Implementations
impl RefUnwindSafe for TomlSync
impl Send for TomlSync
impl Sync for TomlSync
impl Unpin for TomlSync
impl UnwindSafe for TomlSync
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more