bc_envelope::extension::expressions::request

Trait RequestBehavior

Source
pub trait RequestBehavior: ExpressionBehavior {
    // Required methods
    fn with_note(self, note: impl Into<String>) -> Self;
    fn with_date(self, date: impl AsRef<Date>) -> Self;
    fn body(&self) -> &Expression;
    fn id(&self) -> &ARID;
    fn note(&self) -> &str;
    fn date(&self) -> Option<&Date>;
}

Required Methods§

Source

fn with_note(self, note: impl Into<String>) -> Self

Adds a note to the request.

Source

fn with_date(self, date: impl AsRef<Date>) -> Self

Adds a date to the request.

Source

fn body(&self) -> &Expression

Returns the body of the request.

Source

fn id(&self) -> &ARID

Returns the ID of the request.

Source

fn note(&self) -> &str

Returns the note of the request.

Source

fn date(&self) -> Option<&Date>

Returns the date of the request.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§