Struct teaclave_types::FunctionBuilder
source · [−]pub struct FunctionBuilder { /* private fields */ }
Implementations
sourceimpl FunctionBuilder
impl FunctionBuilder
pub fn new() -> Self
pub fn id(self, id: Uuid) -> Self
pub fn executor_type(self, executor_type: ExecutorType) -> Self
pub fn name(self, name: impl ToString) -> Self
pub fn description(self, description: impl ToString) -> Self
pub fn payload(self, payload: Vec<u8>) -> Self
pub fn public(self, public: bool) -> Self
pub fn arguments(self, arguments: Vec<FunctionArgument>) -> Self
pub fn inputs(self, inputs: Vec<FunctionInput>) -> Self
pub fn outputs(self, outputs: Vec<FunctionOutput>) -> Self
pub fn owner(self, owner: impl Into<UserID>) -> Self
pub fn user_allowlist(self, user_allowlist: Vec<String>) -> Self
pub fn usage_quota(self, usage_quota: Option<i32>) -> Self
pub fn build(self) -> Function
Trait Implementations
sourceimpl Default for FunctionBuilder
impl Default for FunctionBuilder
sourcefn default() -> FunctionBuilder
fn default() -> FunctionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FunctionBuilder
impl Send for FunctionBuilder
impl Sync for FunctionBuilder
impl Unpin for FunctionBuilder
impl UnwindSafe for FunctionBuilder
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request