pub struct Response {
pub id: u32,
pub accepted: bool,
pub body: Option<Body>,
pub error: Option<String>,
pub reason: Option<String>,
}
Expand description
The table Response
in the namespace FBS.Response
Generated from these locations:
- Table
Response
in the filefbs/response.fbs:47
Fields§
§id: u32
The field id
in the table Response
accepted: bool
The field accepted
in the table Response
body: Option<Body>
The field body
in the table Response
error: Option<String>
The field error
in the table Response
reason: Option<String>
The field reason
in the table Response
Implementations§
Source§impl Response
impl Response
Sourcepub fn builder() -> ResponseBuilder<()>
pub fn builder() -> ResponseBuilder<()>
Creates a ResponseBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_id: impl WriteAsDefault<u32, u32>, field_accepted: impl WriteAsDefault<bool, bool>, field_body: impl WriteAsOptionalUnion<Body>, field_error: impl WriteAsOptional<Offset<str>>, field_reason: impl WriteAsOptional<Offset<str>>, ) -> Offset<Self>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 PartialOrd for Response
impl PartialOrd for Response
Source§impl<'a> TryFrom<ResponseRef<'a>> for Response
impl<'a> TryFrom<ResponseRef<'a>> for Response
impl StructuralPartialEq for Response
impl VectorWrite<Offset<Response>> for Response
impl WriteAs<Offset<Response>> for Response
impl WriteAsOffset<Response> for Response
impl<T0: WriteAsDefault<u32, u32>, T1: WriteAsDefault<bool, bool>, T2: WriteAsOptionalUnion<Body>, T3: WriteAsOptional<Offset<str>>, T4: WriteAsOptional<Offset<str>>> WriteAsOffset<Response> for ResponseBuilder<(T0, T1, T2, T3, T4)>
impl WriteAsOptional<Offset<Response>> for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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