pub struct Builder<T>(/* private fields */);
Expand description
A builder for CreateNotebookRequest
Implementations§
Source§impl Builder<TitleStage>
impl Builder<TitleStage>
Source§impl Builder<DescriptionStage>
impl Builder<DescriptionStage>
Sourcepub fn description(
self,
description: impl Into<String>,
) -> Builder<IsDraftStage>
pub fn description( self, description: impl Into<String>, ) -> Builder<IsDraftStage>
Sets the description
field.
Source§impl Builder<IsDraftStage>
impl Builder<IsDraftStage>
Sourcepub fn is_draft(self, is_draft: bool) -> Builder<StateAsJsonStage>
pub fn is_draft(self, is_draft: bool) -> Builder<StateAsJsonStage>
Sets the is_draft
field.
Source§impl Builder<StateAsJsonStage>
impl Builder<StateAsJsonStage>
Sourcepub fn state_as_json(
self,
state_as_json: impl Into<String>,
) -> Builder<LayoutStage>
pub fn state_as_json( self, state_as_json: impl Into<String>, ) -> Builder<LayoutStage>
Sets the state_as_json
field.
Source§impl Builder<LayoutStage>
impl Builder<LayoutStage>
Sourcepub fn layout(self, layout: WorkbookLayout) -> Builder<Complete>
pub fn layout(self, layout: WorkbookLayout) -> Builder<Complete>
Sets the layout
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sets the description
field.
Sourcepub fn notebook_type(
self,
notebook_type: impl Into<Option<NotebookType>>,
) -> Self
pub fn notebook_type( self, notebook_type: impl Into<Option<NotebookType>>, ) -> Self
Sets the notebook_type
field.
Sourcepub fn state_as_json(self, state_as_json: impl Into<String>) -> Self
pub fn state_as_json(self, state_as_json: impl Into<String>) -> Self
Sets the state_as_json
field.
Sourcepub fn charts(self, charts: impl Into<Option<Vec<ChartWithOverlays>>>) -> Self
pub fn charts(self, charts: impl Into<Option<Vec<ChartWithOverlays>>>) -> Self
Sets the charts
field.
Sourcepub fn data_scope(
self,
data_scope: impl Into<Option<NotebookDataScope>>,
) -> Self
pub fn data_scope( self, data_scope: impl Into<Option<NotebookDataScope>>, ) -> Self
Sets the data_scope
field.
Sourcepub fn layout(self, layout: WorkbookLayout) -> Self
pub fn layout(self, layout: WorkbookLayout) -> Self
Sets the layout
field.
Sourcepub fn content(self, content: impl Into<Option<WorkbookContent>>) -> Self
pub fn content(self, content: impl Into<Option<WorkbookContent>>) -> Self
Sets the content
field.
Sourcepub fn content_v2(
self,
content_v2: impl Into<Option<UnifiedWorkbookContent>>,
) -> Self
pub fn content_v2( self, content_v2: impl Into<Option<UnifiedWorkbookContent>>, ) -> Self
Sets the content_v2
field.
Sourcepub fn insert_event_refs(self, event_refs: EventReference) -> Self
pub fn insert_event_refs(self, event_refs: EventReference) -> Self
Adds a value to the event_refs
field.
Sourcepub fn event_refs(
self,
event_refs: impl IntoIterator<Item = EventReference>,
) -> Self
pub fn event_refs( self, event_refs: impl IntoIterator<Item = EventReference>, ) -> Self
Sets the event_refs
field.
Sourcepub fn extend_event_refs(
self,
event_refs: impl IntoIterator<Item = EventReference>,
) -> Self
pub fn extend_event_refs( self, event_refs: impl IntoIterator<Item = EventReference>, ) -> Self
Adds values to the event_refs
field.
Sourcepub fn check_alert_refs(
self,
check_alert_refs: impl Into<Option<BTreeSet<CheckAlertReference>>>,
) -> Self
pub fn check_alert_refs( self, check_alert_refs: impl Into<Option<BTreeSet<CheckAlertReference>>>, ) -> Self
Sets the check_alert_refs
field.
Sourcepub fn workspace(self, workspace: impl Into<Option<WorkspaceRid>>) -> Self
pub fn workspace(self, workspace: impl Into<Option<WorkspaceRid>>) -> Self
Sets the workspace
field.
Sourcepub fn build(self) -> CreateNotebookRequest
pub fn build(self) -> CreateNotebookRequest
Consumes the builder, returning a CreateNotebookRequest
.
Trait Implementations§
Source§impl Default for Builder<TitleStage>
impl Default for Builder<TitleStage>
Source§impl From<CreateNotebookRequest> for Builder<Complete>
impl From<CreateNotebookRequest> for Builder<Complete>
Source§fn from(v: CreateNotebookRequest) -> Self
fn from(v: CreateNotebookRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: 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> 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