pub struct RpEndpoint<F>where
F: Flavor + 'static,{
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.
Implementations§
Source§impl<F> RpEndpoint<F>where
F: Flavor + 'static,
impl<F> RpEndpoint<F>where
F: Flavor + 'static,
pub fn id_parts<T>(&self, filter: T) -> Vec<String>
Sourcepub fn safe_ident(&self) -> &str
pub fn safe_ident(&self) -> &str
Safe identifier of the endpoint.
Sourcepub fn has_http_support(&self) -> bool
pub fn has_http_support(&self) -> bool
If endpoint has metadata for HTTP.
Trait Implementations§
Source§impl<F> Clone for RpEndpoint<F>
impl<F> Clone for RpEndpoint<F>
Source§fn clone(&self) -> RpEndpoint<F>
fn clone(&self) -> RpEndpoint<F>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F> Debug for RpEndpoint<F>
impl<F> Debug for RpEndpoint<F>
Source§impl<F> Serialize for RpEndpoint<F>
impl<F> Serialize for RpEndpoint<F>
Source§impl<F, T> Translate<T> for RpEndpoint<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
impl<F, T> Translate<T> for RpEndpoint<F>where
F: Flavor + 'static,
T: Translator<Source = F>,
Source§fn translate(
self,
diag: &mut Diagnostics,
translator: &T,
) -> Result<RpEndpoint<T::Target>>
fn translate( self, diag: &mut Diagnostics, translator: &T, ) -> Result<RpEndpoint<T::Target>>
Translate into different flavor.
type Source = F
type Out = RpEndpoint<<T as Translator>::Target>
Auto Trait Implementations§
impl<F> Freeze for RpEndpoint<F>
impl<F> RefUnwindSafe for RpEndpoint<F>
impl<F> !Send for RpEndpoint<F>
impl<F> !Sync for RpEndpoint<F>
impl<F> Unpin for RpEndpoint<F>
impl<F> UnwindSafe for RpEndpoint<F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more