pub struct DuplicateNotebookRequest { /* private fields */ }Expand description
Request to duplicate a workbook. All content fields (layout, charts, contentV2, eventRefs) are copied from the source workbook. Metadata fields can be optionally overridden; if not provided, they default to the source workbook’s values (except isDraft, which defaults to true).
Implementations§
Source§impl DuplicateNotebookRequest
impl DuplicateNotebookRequest
Sourcepub fn builder() -> Builder<WorkspaceStage>
pub fn builder() -> Builder<WorkspaceStage>
Returns a new builder.
Source§impl DuplicateNotebookRequest
impl DuplicateNotebookRequest
Sourcepub fn new(workspace: WorkspaceRid) -> Self
pub fn new(workspace: WorkspaceRid) -> Self
Constructs a new instance of the type.
Sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
Override the title of the duplicated workbook. If not provided, generates a copy title from the source using the titleSuffix.
Sourcepub fn title_suffix(&self) -> Option<&str>
pub fn title_suffix(&self) -> Option<&str>
Custom suffix for generating the copy title (e.g., “Run analysis”). Defaults to “copy”. Ignored if title is explicitly provided.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Override description. Defaults to the source workbook’s description.
Sourcepub fn data_scope(&self) -> Option<&NotebookDataScope>
pub fn data_scope(&self) -> Option<&NotebookDataScope>
Override data scope. Defaults to the source workbook’s data scope.
Sourcepub fn workspace(&self) -> &WorkspaceRid
pub fn workspace(&self) -> &WorkspaceRid
The workspace for the duplicated workbook.
Sourcepub fn labels(&self) -> Option<&BTreeSet<Label>>
pub fn labels(&self) -> Option<&BTreeSet<Label>>
Override labels. Defaults to the source workbook’s labels.
Sourcepub fn properties(&self) -> Option<&BTreeMap<PropertyName, PropertyValue>>
pub fn properties(&self) -> Option<&BTreeMap<PropertyName, PropertyValue>>
Override properties. Defaults to the source workbook’s properties.
Sourcepub fn preview_image(&self) -> Option<&ThemeAwareImage>
pub fn preview_image(&self) -> Option<&ThemeAwareImage>
Override preview image. Defaults to the source workbook’s preview image.
Trait Implementations§
Source§impl Clone for DuplicateNotebookRequest
impl Clone for DuplicateNotebookRequest
Source§fn clone(&self) -> DuplicateNotebookRequest
fn clone(&self) -> DuplicateNotebookRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DuplicateNotebookRequest
impl Debug for DuplicateNotebookRequest
Source§impl<'de> Deserialize<'de> for DuplicateNotebookRequest
impl<'de> Deserialize<'de> for DuplicateNotebookRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<DuplicateNotebookRequest> for Builder<Complete>
impl From<DuplicateNotebookRequest> for Builder<Complete>
Source§fn from(v: DuplicateNotebookRequest) -> Self
fn from(v: DuplicateNotebookRequest) -> Self
Source§impl Hash for DuplicateNotebookRequest
impl Hash for DuplicateNotebookRequest
Source§impl Ord for DuplicateNotebookRequest
impl Ord for DuplicateNotebookRequest
Source§fn cmp(&self, other: &DuplicateNotebookRequest) -> Ordering
fn cmp(&self, other: &DuplicateNotebookRequest) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DuplicateNotebookRequest
impl PartialEq for DuplicateNotebookRequest
Source§impl PartialOrd for DuplicateNotebookRequest
impl PartialOrd for DuplicateNotebookRequest
Source§impl Serialize for DuplicateNotebookRequest
impl Serialize for DuplicateNotebookRequest
impl Eq for DuplicateNotebookRequest
impl StructuralPartialEq for DuplicateNotebookRequest
Auto Trait Implementations§
impl Freeze for DuplicateNotebookRequest
impl RefUnwindSafe for DuplicateNotebookRequest
impl Send for DuplicateNotebookRequest
impl Sync for DuplicateNotebookRequest
impl Unpin for DuplicateNotebookRequest
impl UnsafeUnpin for DuplicateNotebookRequest
impl UnwindSafe for DuplicateNotebookRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
T in a tonic::Request