pub struct SlackApiBlocksValidateResponse {
pub ok: bool,
pub error: Option<SlackApiBlocksValidateErrorKind>,
pub errors: Option<Vec<SlackApiBlocksValidateError>>,
}Fields§
§ok: bool§error: Option<SlackApiBlocksValidateErrorKind>Set when ok is false.
errors: Option<Vec<SlackApiBlocksValidateError>>Implementations§
Source§impl SlackApiBlocksValidateResponse
impl SlackApiBlocksValidateResponse
Sourcepub fn new(ok: bool) -> Self
pub fn new(ok: bool) -> Self
Creates a new SlackApiBlocksValidateResponse from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn error(&mut self, value: SlackApiBlocksValidateErrorKind) -> &mut Self
pub fn error(&mut self, value: SlackApiBlocksValidateErrorKind) -> &mut Self
Sets error to Some(value).
Set when ok is false.
Sourcepub fn reset_error(&mut self) -> &mut Self
pub fn reset_error(&mut self) -> &mut Self
Sets error to None.
Set when ok is false.
Sourcepub fn mopt_error(
&mut self,
value: Option<SlackApiBlocksValidateErrorKind>,
) -> &mut Self
pub fn mopt_error( &mut self, value: Option<SlackApiBlocksValidateErrorKind>, ) -> &mut Self
Sets error to the given Option.
Set when ok is false.
Sourcepub fn with_error(self, value: SlackApiBlocksValidateErrorKind) -> Self
pub fn with_error(self, value: SlackApiBlocksValidateErrorKind) -> Self
Returns self with error set to Some(value).
Set when ok is false.
Sourcepub fn without_error(self) -> Self
pub fn without_error(self) -> Self
Returns self with error set to None.
Set when ok is false.
Sourcepub fn opt_error(self, value: Option<SlackApiBlocksValidateErrorKind>) -> Self
pub fn opt_error(self, value: Option<SlackApiBlocksValidateErrorKind>) -> Self
Returns self with error set to the given Option.
Set when ok is false.
Sourcepub fn errors(&mut self, value: Vec<SlackApiBlocksValidateError>) -> &mut Self
pub fn errors(&mut self, value: Vec<SlackApiBlocksValidateError>) -> &mut Self
Sets errors to Some(value).
Sourcepub fn reset_errors(&mut self) -> &mut Self
pub fn reset_errors(&mut self) -> &mut Self
Sets errors to None.
Sourcepub fn mopt_errors(
&mut self,
value: Option<Vec<SlackApiBlocksValidateError>>,
) -> &mut Self
pub fn mopt_errors( &mut self, value: Option<Vec<SlackApiBlocksValidateError>>, ) -> &mut Self
Sets errors to the given Option.
Sourcepub fn with_errors(self, value: Vec<SlackApiBlocksValidateError>) -> Self
pub fn with_errors(self, value: Vec<SlackApiBlocksValidateError>) -> Self
Returns self with errors set to Some(value).
Sourcepub fn without_errors(self) -> Self
pub fn without_errors(self) -> Self
Returns self with errors set to None.
Sourcepub fn opt_errors(self, value: Option<Vec<SlackApiBlocksValidateError>>) -> Self
pub fn opt_errors(self, value: Option<Vec<SlackApiBlocksValidateError>>) -> Self
Returns self with errors set to the given Option.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackApiBlocksValidateResponse
impl<'de> Deserialize<'de> for SlackApiBlocksValidateResponse
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<SlackApiBlocksValidateResponseInit> for SlackApiBlocksValidateResponse
impl From<SlackApiBlocksValidateResponseInit> for SlackApiBlocksValidateResponse
Source§fn from(value: SlackApiBlocksValidateResponseInit) -> Self
fn from(value: SlackApiBlocksValidateResponseInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiBlocksValidateResponse
Auto Trait Implementations§
impl Freeze for SlackApiBlocksValidateResponse
impl RefUnwindSafe for SlackApiBlocksValidateResponse
impl Send for SlackApiBlocksValidateResponse
impl Sync for SlackApiBlocksValidateResponse
impl Unpin for SlackApiBlocksValidateResponse
impl UnsafeUnpin for SlackApiBlocksValidateResponse
impl UnwindSafe for SlackApiBlocksValidateResponse
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