[−][src]Struct cpt::model::Cpt
Fields
from: String
to: String
data: Option<Box<HashMap<K, V, S>>>
dry: bool
force: bool
Methods
impl<K, V, S> Cpt<K, V, S> where
K: Hash + Eq + DeserializeOwned + Serialize + Debug,
V: Hash + Eq + DeserializeOwned + Serialize + Debug + Into<StringOrVecString>,
S: BuildHasher + Default + Debug,
[src]
K: Hash + Eq + DeserializeOwned + Serialize + Debug,
V: Hash + Eq + DeserializeOwned + Serialize + Debug + Into<StringOrVecString>,
S: BuildHasher + Default + Debug,
pub fn new(from: String, to: String) -> Self
[src]
pub fn dry(self) -> Self
[src]
pub fn force(self) -> Self
[src]
pub fn set_dry(self, dry: bool) -> Self
[src]
pub fn set_force(self, force: bool) -> Self
[src]
pub fn set_data(self, data: HashMap<K, V, S>) -> Self
[src]
pub fn try_data(self, data: Option<Box<HashMap<K, V, S>>>) -> Self
[src]
pub fn execute(self) -> Result<(), Box<dyn Error>>
[src]
Trait Implementations
impl<K, V, S> FromArgs for Cpt<K, V, S> where
K: Hash + Eq + DeserializeOwned + Serialize + Debug,
V: Hash + Eq + DeserializeOwned + Serialize + Debug + Into<StringOrVecString>,
S: BuildHasher + Default + Debug,
[src]
K: Hash + Eq + DeserializeOwned + Serialize + Debug,
V: Hash + Eq + DeserializeOwned + Serialize + Debug + Into<StringOrVecString>,
S: BuildHasher + Default + Debug,
impl<K, V, S> Default for Cpt<K, V, S> where
K: Hash + Eq + DeserializeOwned + Serialize + Debug,
V: Hash + Eq + DeserializeOwned + Serialize + Debug + Into<StringOrVecString>,
S: BuildHasher + Default,
[src]
K: Hash + Eq + DeserializeOwned + Serialize + Debug,
V: Hash + Eq + DeserializeOwned + Serialize + Debug + Into<StringOrVecString>,
S: BuildHasher + Default,
impl<K: Debug, V: Debug, S: Debug> Debug for Cpt<K, V, S> where
K: Hash + Eq + DeserializeOwned + Serialize + Debug,
V: Hash + Eq + DeserializeOwned + Serialize + Debug + Into<StringOrVecString>,
S: BuildHasher + Default,
[src]
K: Hash + Eq + DeserializeOwned + Serialize + Debug,
V: Hash + Eq + DeserializeOwned + Serialize + Debug + Into<StringOrVecString>,
S: BuildHasher + Default,
Auto Trait Implementations
impl<K, V, S> Send for Cpt<K, V, S> where
K: Send,
S: Send,
V: Send,
K: Send,
S: Send,
V: Send,
impl<K, V, S> Sync for Cpt<K, V, S> where
K: Sync,
S: Sync,
V: Sync,
K: Sync,
S: Sync,
V: Sync,
impl<K, V, S> Unpin for Cpt<K, V, S>
impl<K, V, S> UnwindSafe for Cpt<K, V, S> where
K: UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
impl<K, V, S> RefUnwindSafe for Cpt<K, V, S> where
K: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,