Struct ciboulette::CibouletteBodyBuilder [−][src]
pub struct CibouletteBodyBuilder<'request> { /* fields omitted */ }
Expand description
Implementations
impl<'request> CibouletteBodyBuilder<'request>
[src]
impl<'request> CibouletteBodyBuilder<'request>
[src]pub fn jsonapi(&self) -> &Option<CibouletteJsonApiVersion<'request>>
[src]
pub fn jsonapi(&self) -> &Option<CibouletteJsonApiVersion<'request>>
[src]The semver of the JSON:API
specs
pub fn data(&self) -> &CibouletteBodyDataBuilder<'request>
[src]
pub fn data(&self) -> &CibouletteBodyDataBuilder<'request>
[src]The data of the request/response. Cannot be set with errors
.
pub fn errors(&self) -> &Option<CibouletteErrorObj<'request>>
[src]
pub fn errors(&self) -> &Option<CibouletteErrorObj<'request>>
[src]The error object of the response. Cannot be set with data
.
pub fn meta(&self) -> &Option<Value>
[src]
pub fn links(&self) -> &Option<CibouletteBodyLink<'request>>
[src]
pub fn links(&self) -> &Option<CibouletteBodyLink<'request>>
[src]Links to the current object/relationship
pub fn included(&self) -> &Vec<CibouletteResourceBuilder<'request>>
[src]
pub fn included(&self) -> &Vec<CibouletteResourceBuilder<'request>>
[src]The included objects. Cannot be set without data
impl<'request> CibouletteBodyBuilder<'request>
[src]
impl<'request> CibouletteBodyBuilder<'request>
[src]pub fn jsonapi_mut(&mut self) -> &mut Option<CibouletteJsonApiVersion<'request>>
[src]
pub fn jsonapi_mut(&mut self) -> &mut Option<CibouletteJsonApiVersion<'request>>
[src]The semver of the JSON:API
specs
pub fn data_mut(&mut self) -> &mut CibouletteBodyDataBuilder<'request>
[src]
pub fn data_mut(&mut self) -> &mut CibouletteBodyDataBuilder<'request>
[src]The data of the request/response. Cannot be set with errors
.
pub fn errors_mut(&mut self) -> &mut Option<CibouletteErrorObj<'request>>
[src]
pub fn errors_mut(&mut self) -> &mut Option<CibouletteErrorObj<'request>>
[src]The error object of the response. Cannot be set with data
.
pub fn meta_mut(&mut self) -> &mut Option<Value>
[src]
pub fn links_mut(&mut self) -> &mut Option<CibouletteBodyLink<'request>>
[src]
pub fn links_mut(&mut self) -> &mut Option<CibouletteBodyLink<'request>>
[src]Links to the current object/relationship
pub fn included_mut(&mut self) -> &mut Vec<CibouletteResourceBuilder<'request>>
[src]
pub fn included_mut(&mut self) -> &mut Vec<CibouletteResourceBuilder<'request>>
[src]The included objects. Cannot be set without data
impl<'request> CibouletteBodyBuilder<'request>
[src]
impl<'request> CibouletteBodyBuilder<'request>
[src]pub fn check<'c>(
intention: &CibouletteIntention,
data: &'c CibouletteBodyData<'request, CibouletteResourceIdentifierPermissive<'request>, MessyJsonObjectValue<'request>>,
included: &'c [CibouletteResource<'request, MessyJsonObjectValue<'request>, CibouletteResourceIdentifierPermissive<'request>>],
errors: &'c Option<CibouletteErrorObj<'request>>
) -> Result<(), CibouletteError>
[src]
pub fn check<'c>(
intention: &CibouletteIntention,
data: &'c CibouletteBodyData<'request, CibouletteResourceIdentifierPermissive<'request>, MessyJsonObjectValue<'request>>,
included: &'c [CibouletteResource<'request, MessyJsonObjectValue<'request>, CibouletteResourceIdentifierPermissive<'request>>],
errors: &'c Option<CibouletteErrorObj<'request>>
) -> Result<(), CibouletteError>
[src]Perfom all the document checks
pub fn build(
self,
bag: &CibouletteStore,
intention: &CibouletteIntention
) -> Result<CibouletteBody<'request, CibouletteResourceIdentifierPermissive<'request>, MessyJsonObjectValue<'request>>, CibouletteError>
[src]
pub fn build(
self,
bag: &CibouletteStore,
intention: &CibouletteIntention
) -> Result<CibouletteBody<'request, CibouletteResourceIdentifierPermissive<'request>, MessyJsonObjectValue<'request>>, CibouletteError>
[src]Build a CibouletteBody from the builder.
Runs check
before building
Trait Implementations
impl<'request> Debug for CibouletteBodyBuilder<'request>
[src]
impl<'request> Debug for CibouletteBodyBuilder<'request>
[src]impl<'de> Deserialize<'de> for CibouletteBodyBuilder<'de>
[src]
impl<'de> Deserialize<'de> for CibouletteBodyBuilder<'de>
[src]fn deserialize<D>(
deserializer: D
) -> Result<CibouletteBodyBuilder<'de>, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(
deserializer: D
) -> Result<CibouletteBodyBuilder<'de>, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more