Struct reproto_core::RpEndpoint
[−]
[src]
pub struct RpEndpoint {
pub id: Loc<String>,
pub name: String,
pub comment: Vec<String>,
pub attributes: Attributes,
pub arguments: LinkedHashMap<String, (Loc<String>, Loc<RpChannel>)>,
pub response: Option<Loc<RpChannel>>,
pub http: RpEndpointHttp,
}Fields
id: Loc<String>
Name of the endpoint. Guaranteed to be unique.
name: 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: LinkedHashMap<String, (Loc<String>, Loc<RpChannel>)>
Request type that this endpoint expects.
response: Option<Loc<RpChannel>>
Response type that this endpoint responds with.
http: RpEndpointHttp
HTTP configuration.
Methods
impl RpEndpoint[src]
fn id_parts<F>(&self, filter: F) -> Vec<String> where
F: Fn(&str) -> String, [src]
F: Fn(&str) -> String,
fn name(&self) -> &str[src]
Get the name of the endpoint.
Trait Implementations
impl Debug for RpEndpoint[src]
impl Clone for RpEndpoint[src]
fn clone(&self) -> RpEndpoint[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