Struct reproto_core::RpEndpoint
[−]
[src]
pub struct RpEndpoint<F: 'static> where
F: Flavor, { pub ident: String, pub safe_ident: Option<String>, pub name: Option<String>, pub comment: Vec<String>, pub attributes: Attributes, pub arguments: Vec<RpEndpointArgument<F>>, pub request: Option<RpEndpointArgument<F>>, pub response: Option<Loc<RpChannel<F>>>, pub http: RpEndpointHttp<F>, }
Fields
ident: String
Name of the endpoint. Guaranteed to be unique.
safe_ident: Option<String>
Safe identifier of the endpoint, avoiding any language-specific keywords.
name: Option<String>
Name of the endpoint. This is the name which is being sent over the wire.
comment: Vec<String>
Comments for documentation.
attributes: Attributes
Attributes associated with the endpoint.
arguments: Vec<RpEndpointArgument<F>>
Request type that this endpoint expects.
request: Option<RpEndpointArgument<F>>
Request type that this endpoint accepts with.
response: Option<Loc<RpChannel<F>>>
Response type that this endpoint responds with.
http: RpEndpointHttp<F>
HTTP configuration.
Methods
impl<F: 'static> RpEndpoint<F> where
F: Flavor,
[src]
F: Flavor,
pub fn id_parts<T>(&self, filter: T) -> Vec<String> where
T: Fn(&str) -> String,
[src]
T: Fn(&str) -> String,
pub fn name(&self) -> &str
[src]
Get the name of the endpoint.
pub fn safe_ident(&self) -> &str
[src]
Safe identifier of the endpoint.
pub fn ident(&self) -> &str
[src]
Get the identifier of the endpoint.
pub fn has_http_support(&self) -> bool
[src]
If endpoint has metadata for HTTP.
Trait Implementations
impl<F: Debug + 'static> Debug for RpEndpoint<F> where
F: Flavor,
[src]
F: Flavor,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone + 'static> Clone for RpEndpoint<F> where
F: Flavor,
[src]
F: Flavor,
fn clone(&self) -> RpEndpoint<F>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<F: 'static, T> Translate<T> for RpEndpoint<F> where
F: Flavor,
T: Translator<Source = F>,
[src]
F: Flavor,
T: Translator<Source = F>,
type Source = F
type Out = RpEndpoint<T::Target>
fn translate(self, translator: &T) -> Result<RpEndpoint<T::Target>>
[src]
Translate into different flavor.