Struct reproto_core::RpEndpoint
[−]
[src]
pub struct RpEndpoint {
pub ident: String,
pub safe_ident: Option<String>,
pub name: Option<String>,
pub comment: Vec<String>,
pub attributes: Attributes,
pub arguments: Vec<RpEndpointArgument>,
pub response: Option<Loc<RpChannel>>,
pub http: RpEndpointHttp,
}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>
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]
pub fn id_parts<F>(&self, filter: F) -> Vec<String> where
F: Fn(&str) -> String, [src]
F: 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 Debug for RpEndpoint[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
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