pub struct Builder<T>(/* private fields */);
Expand description
A builder for UpdateNotebookRequest
Implementations§
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 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 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 latest_snapshot_rid(
self,
latest_snapshot_rid: impl Into<Option<SnapshotRid>>,
) -> Self
pub fn latest_snapshot_rid( self, latest_snapshot_rid: impl Into<Option<SnapshotRid>>, ) -> Self
Sets the latest_snapshot_rid
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 build(self) -> UpdateNotebookRequest
pub fn build(self) -> UpdateNotebookRequest
Consumes the builder, returning a UpdateNotebookRequest
.
Trait Implementations§
Source§impl Default for Builder<StateAsJsonStage>
impl Default for Builder<StateAsJsonStage>
Source§impl From<UpdateNotebookRequest> for Builder<Complete>
impl From<UpdateNotebookRequest> for Builder<Complete>
Source§fn from(v: UpdateNotebookRequest) -> Self
fn from(v: UpdateNotebookRequest) -> 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