pub struct RequestBuilder { /* private fields */ }
Expand description
CreateStudyRequest builder.
Implementations§
Source§impl RequestBuilder
impl RequestBuilder
Sourcepub fn new(owner: String) -> Self
pub fn new(owner: String) -> Self
Create a new RequestBuilder for the given project and location.
Sourcepub fn with_display_name(self, display_name: String) -> Self
pub fn with_display_name(self, display_name: String) -> Self
Set the display name - required.
Sourcepub fn with_study_spec(self, study_spec: StudySpec) -> Self
pub fn with_study_spec(self, study_spec: StudySpec) -> Self
Set the study spec - required.
Sourcepub fn build(self) -> Result<CreateStudyRequest, Error>
pub fn build(self) -> Result<CreateStudyRequest, Error>
Builds the CreateStudyRequest.
Auto Trait Implementations§
impl Freeze for RequestBuilder
impl RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl UnwindSafe for RequestBuilder
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> 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