Struct nu_plugin_post::Post [−][src]
pub struct Post {
pub path: Option<Value>,
pub has_raw: bool,
pub body: Option<Value>,
pub user: Option<String>,
pub password: Option<String>,
pub headers: Vec<HeaderKind>,
pub tag: Tag,
}
Fields
path: Option<Value>
has_raw: bool
body: Option<Value>
user: Option<String>
password: Option<String>
headers: Vec<HeaderKind>
tag: Tag
Implementations
Trait Implementations
The config
method is used to configure a plugin’s user interface / signature. Read more
begin_filter
is the first method to be called if the Signature
of the plugin is configured to be filterable.
Any setup required for the plugin such as parsing arguments from CallInfo
or initializing data structures
can be done here. The CallInfo
parameter will contain data configured in the config
method of the Plugin trait. Read more
fn filter(
&mut self,
_input: Value
) -> Result<Vec<Result<ReturnSuccess, ShellError>, Global>, ShellError>
fn filter(
&mut self,
_input: Value
) -> Result<Vec<Result<ReturnSuccess, ShellError>, Global>, ShellError>
filter
is called for every Value
that is processed by the plugin.
This method requires the plugin Signature
to be configured as filterable. Read more
fn end_filter(
&mut self
) -> Result<Vec<Result<ReturnSuccess, ShellError>, Global>, ShellError>
fn end_filter(
&mut self
) -> Result<Vec<Result<ReturnSuccess, ShellError>, Global>, ShellError>
end_filter
is the last method to be called by the plugin after all Value
s are processed by the plugin.
This method requires the plugin Signature
to be configured as filterable. Read more
sink
consumes the Value
s that are passed in, preventing further processing.
This method requires the plugin Signature
to be configured without filtering. Read more
Auto Trait Implementations
impl RefUnwindSafe for Post
impl UnwindSafe for Post
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more