pub struct Operation<In, Out> {
pub id: String,
pub method: String,
pub title: String,
pub description: String,
pub allowed_roles: Vec<String>,
pub tags: Vec<String>,
pub read_only: bool,
pub visible: Option<bool>,
/* private fields */
}Fields§
§id: String§method: String§title: String§description: String§allowed_roles: Vec<String>§read_only: bool§visible: Option<bool>Implementations§
Source§impl<In, Out> Operation<In, Out>where
In: JsonSchema,
Out: JsonSchema,
impl<In, Out> Operation<In, Out>where
In: JsonSchema,
Out: JsonSchema,
pub fn new(id: impl Into<String>) -> Self
pub fn method(self, method: impl AsRef<str>) -> Self
pub fn title(self, title: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn allowed_roles(self, allowed_roles: impl Into<Vec<String>>) -> Self
pub fn read_only(self, read_only: bool) -> Self
pub fn visible(self, visible: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<In, Out> Freeze for Operation<In, Out>
impl<In, Out> RefUnwindSafe for Operation<In, Out>where
In: RefUnwindSafe,
Out: RefUnwindSafe,
impl<In, Out> Send for Operation<In, Out>
impl<In, Out> Sync for Operation<In, Out>
impl<In, Out> Unpin for Operation<In, Out>
impl<In, Out> UnsafeUnpin for Operation<In, Out>
impl<In, Out> UnwindSafe for Operation<In, Out>where
In: UnwindSafe,
Out: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request