[−][src]Struct automaat_processor_git_clone::GitClone
The processor configuration.
Fields
url: Url
The URL of the remote to fetch the repository from.
username: Option<String>
The optional username used to authenticate with the remote.
password: Option<String>
The optional password used to authenticate with the remote.
path: Option<String>
An optional path inside the workspace to clone the repository to. If no path is given, the root of the workspace is used. If the path does not exist, it will be created.
Trait Implementations
impl Eq for GitClone
[src]
impl PartialEq<GitClone> for GitClone
[src]
impl Clone for GitClone
[src]
fn clone(&self) -> GitClone
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for GitClone
[src]
impl<'a> Processor<'a> for GitClone
[src]
const NAME: &'static str
[src]
type Error = Error
If a processor fails its intended purpose, the returned error is turned into a string, and shown in the automaat-web-client
application. Read more
type Output = String
The processor can return any (successful) output it wants, as long as that type implements the [std::fmt::Display
] trait. Read more
fn validate(&self) -> Result<(), Self::Error>
[src]
Validate the GitClone
configuration.
Errors
This method returns an error under the following circumstances:
- If a
path
option is provided that contains anything other than a simple relative path such asmy/path
. Anything such as../
, or/etc
is not allowed. The returned error is of typeError::Path
.
In a future update, this will also validate remote connectivity.
fn run(&self, context: &Context) -> Result<Option<Self::Output>, Self::Error>
[src]
Clone the repository as defined by the provided configuration.
The repository will be cloned in the automaat_core::Context
workspace, optionally in a child path
.
Output
None
is returned if the processor runs successfully.
Errors
Any errors during cloning will return an Error::Git
result value.
impl<'de> Deserialize<'de> for GitClone
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for GitClone
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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 = Infallible
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,