pub struct Builder<T>(/* private fields */);
Expand description
A builder for Notebook
Implementations§
Source§impl Builder<RidStage>
impl Builder<RidStage>
Sourcepub fn rid(self, rid: NotebookRid) -> Builder<SnapshotRidStage>
pub fn rid(self, rid: NotebookRid) -> Builder<SnapshotRidStage>
Sets the rid
field.
Source§impl Builder<SnapshotRidStage>
impl Builder<SnapshotRidStage>
Sourcepub fn snapshot_rid(
self,
snapshot_rid: SnapshotRid,
) -> Builder<SnapshotAuthorRidStage>
pub fn snapshot_rid( self, snapshot_rid: SnapshotRid, ) -> Builder<SnapshotAuthorRidStage>
Sets the snapshot_rid
field.
Source§impl Builder<SnapshotAuthorRidStage>
impl Builder<SnapshotAuthorRidStage>
Sets the snapshot_author_rid
field.
Source§impl Builder<SnapshotCreatedAtStage>
impl Builder<SnapshotCreatedAtStage>
Sourcepub fn snapshot_created_at(
self,
snapshot_created_at: DateTime<Utc>,
) -> Builder<MetadataStage>
pub fn snapshot_created_at( self, snapshot_created_at: DateTime<Utc>, ) -> Builder<MetadataStage>
Sets the snapshot_created_at
field.
Source§impl Builder<MetadataStage>
impl Builder<MetadataStage>
Sourcepub fn metadata(self, metadata: NotebookMetadata) -> Builder<StateAsJsonStage>
pub fn metadata(self, metadata: NotebookMetadata) -> Builder<StateAsJsonStage>
Sets the metadata
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<ContentV2Stage>
pub fn layout(self, layout: WorkbookLayout) -> Builder<ContentV2Stage>
Sets the layout
field.
Source§impl Builder<ContentV2Stage>
impl Builder<ContentV2Stage>
Sourcepub fn content_v2(self, content_v2: UnifiedWorkbookContent) -> Builder<Complete>
pub fn content_v2(self, content_v2: UnifiedWorkbookContent) -> Builder<Complete>
Sets the content_v2
field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn rid(self, rid: NotebookRid) -> Self
pub fn rid(self, rid: NotebookRid) -> Self
Sets the rid
field.
Sourcepub fn snapshot_rid(self, snapshot_rid: SnapshotRid) -> Self
pub fn snapshot_rid(self, snapshot_rid: SnapshotRid) -> Self
Sets the snapshot_rid
field.
Sets the snapshot_author_rid
field.
Sourcepub fn snapshot_created_at(self, snapshot_created_at: DateTime<Utc>) -> Self
pub fn snapshot_created_at(self, snapshot_created_at: DateTime<Utc>) -> Self
Sets the snapshot_created_at
field.
Sourcepub fn metadata(self, metadata: NotebookMetadata) -> Self
pub fn metadata(self, metadata: NotebookMetadata) -> Self
Sets the metadata
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 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: UnifiedWorkbookContent) -> Self
pub fn content_v2(self, content_v2: 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.
Trait Implementations§
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