Struct slack_morphism::api::SlackApiTestRequest
source · pub struct SlackApiTestRequest {
pub error: Option<String>,
pub foo: Option<String>,
}
Fields§
§error: Option<String>
§foo: Option<String>
Implementations§
source§impl SlackApiTestRequest
impl SlackApiTestRequest
pub fn new() -> Self
pub fn error(&mut self, value: String) -> &mut Self
pub fn reset_error(&mut self) -> &mut Self
pub fn mopt_error(&mut self, value: Option<String>) -> &mut Self
pub fn with_error(self, value: String) -> Self
pub fn without_error(self) -> Self
pub fn opt_error(self, value: Option<String>) -> Self
pub fn foo(&mut self, value: String) -> &mut Self
pub fn reset_foo(&mut self) -> &mut Self
pub fn mopt_foo(&mut self, value: Option<String>) -> &mut Self
pub fn with_foo(self, value: String) -> Self
pub fn without_foo(self) -> Self
pub fn opt_foo(self, value: Option<String>) -> Self
Trait Implementations§
source§impl Clone for SlackApiTestRequest
impl Clone for SlackApiTestRequest
source§fn clone(&self) -> SlackApiTestRequest
fn clone(&self) -> SlackApiTestRequest
Returns a copy 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 SlackApiTestRequest
impl Debug for SlackApiTestRequest
source§impl<'de> Deserialize<'de> for SlackApiTestRequest
impl<'de> Deserialize<'de> for SlackApiTestRequest
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 From<SlackApiTestRequestInit> for SlackApiTestRequest
impl From<SlackApiTestRequestInit> for SlackApiTestRequest
source§fn from(value: SlackApiTestRequestInit) -> Self
fn from(value: SlackApiTestRequestInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackApiTestRequest
impl PartialEq for SlackApiTestRequest
source§fn eq(&self, other: &SlackApiTestRequest) -> bool
fn eq(&self, other: &SlackApiTestRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackApiTestRequest
impl Serialize for SlackApiTestRequest
impl StructuralPartialEq for SlackApiTestRequest
Auto Trait Implementations§
impl RefUnwindSafe for SlackApiTestRequest
impl Send for SlackApiTestRequest
impl Sync for SlackApiTestRequest
impl Unpin for SlackApiTestRequest
impl UnwindSafe for SlackApiTestRequest
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