Trait reproto_backend::DynamicDecode
[−]
[src]
pub trait DynamicDecode<'el> where
Self: Converter<'el>,
Self: DynamicConverter<'el>, { fn assign_tag_var(
&self,
data: &'el str,
tag_var: &'el str,
tag: &Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>; fn check_tag_var(
&self,
data: &'el str,
tag_var: &'el str,
name: &'el str,
type_name: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>; fn raise_bad_type(&self, tag_var: &'el str) -> Tokens<'el, Self::Custom>; fn new_decode_method(
&self,
data: &'el str,
body: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>; fn name_decode(
&self,
input: Tokens<'el, Self::Custom>,
name: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>; fn array_decode(
&self,
input: Tokens<'el, Self::Custom>,
inner: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>; fn map_decode(
&self,
input: Tokens<'el, Self::Custom>,
key: Tokens<'el, Self::Custom>,
value: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>; fn datetime_decode(
&self,
input: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom> { ... } fn dynamic_decode(
&self,
ty: &RpType,
input: Tokens<'el, Self::Custom>
) -> Result<Tokens<'el, Self::Custom>> { ... } fn interface_decode_method(
&self,
body: &'el RpInterfaceBody,
tag: &Tokens<'el, Self::Custom>
) -> Result<Tokens<'el, Self::Custom>> { ... } }
Required Methods
fn assign_tag_var(
&self,
data: &'el str,
tag_var: &'el str,
tag: &Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
&self,
data: &'el str,
tag_var: &'el str,
tag: &Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
fn check_tag_var(
&self,
data: &'el str,
tag_var: &'el str,
name: &'el str,
type_name: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
&self,
data: &'el str,
tag_var: &'el str,
name: &'el str,
type_name: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
fn raise_bad_type(&self, tag_var: &'el str) -> Tokens<'el, Self::Custom>
fn new_decode_method(
&self,
data: &'el str,
body: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
&self,
data: &'el str,
body: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
fn name_decode(
&self,
input: Tokens<'el, Self::Custom>,
name: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
&self,
input: Tokens<'el, Self::Custom>,
name: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
fn array_decode(
&self,
input: Tokens<'el, Self::Custom>,
inner: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
&self,
input: Tokens<'el, Self::Custom>,
inner: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
fn map_decode(
&self,
input: Tokens<'el, Self::Custom>,
key: Tokens<'el, Self::Custom>,
value: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
&self,
input: Tokens<'el, Self::Custom>,
key: Tokens<'el, Self::Custom>,
value: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
Provided Methods
fn datetime_decode(
&self,
input: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
&self,
input: Tokens<'el, Self::Custom>
) -> Tokens<'el, Self::Custom>
Handle the decoding of a datetime object.
fn dynamic_decode(
&self,
ty: &RpType,
input: Tokens<'el, Self::Custom>
) -> Result<Tokens<'el, Self::Custom>>
&self,
ty: &RpType,
input: Tokens<'el, Self::Custom>
) -> Result<Tokens<'el, Self::Custom>>
fn interface_decode_method(
&self,
body: &'el RpInterfaceBody,
tag: &Tokens<'el, Self::Custom>
) -> Result<Tokens<'el, Self::Custom>>
&self,
body: &'el RpInterfaceBody,
tag: &Tokens<'el, Self::Custom>
) -> Result<Tokens<'el, Self::Custom>>