pub struct PrintOutput {
pub output: String,
}Expand description
The processor configuration.
Fields§
§output: StringThe string that is returned by the processor when PrintOutput is
called.
Trait Implementations§
Source§impl Clone for PrintOutput
impl Clone for PrintOutput
Source§fn clone(&self) -> PrintOutput
fn clone(&self) -> PrintOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrintOutput
impl Debug for PrintOutput
Source§impl<'de> Deserialize<'de> for PrintOutput
impl<'de> Deserialize<'de> for PrintOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PrintOutput
impl PartialEq for PrintOutput
Source§impl<'a> Processor<'a> for PrintOutput
impl<'a> Processor<'a> for PrintOutput
Source§fn run(&self, _context: &Context) -> Result<Option<Self::Output>, Self::Error>
fn run(&self, _context: &Context) -> Result<Option<Self::Output>, Self::Error>
Print the output as defined by the processor configuration.
The repository will be cloned in the Context
workspace, optionally in a child path.
§Output
If the input value is an empty string (""), this processor returns
None. In all other cases, Some is returned, containing the
PrintOutput::output value.
§Errors
This processor is infallible, it will never return the error variant of the result.
Calling Result::unwrap on the returned value will never panic.
Source§const NAME: &'static str = "Print Output"
const NAME: &'static str = "Print Output"
The human-formatted name of the processor, used to visually identify
this processor amongst others.
Source§type Error = Void
type Error = Void
If a processor fails its intended purpose, the returned error is turned
into a string, and shown in the
automaat-web-client application.Source§impl Serialize for PrintOutput
impl Serialize for PrintOutput
impl Eq for PrintOutput
impl StructuralPartialEq for PrintOutput
Auto Trait Implementations§
impl Freeze for PrintOutput
impl RefUnwindSafe for PrintOutput
impl Send for PrintOutput
impl Sync for PrintOutput
impl Unpin for PrintOutput
impl UnwindSafe for PrintOutput
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