Struct Row

Source
pub struct Row {
Show 27 fields pub id: u64, pub sheet_id: Option<u64>, pub access_level: Option<AccessLevel>, pub attachments: Option<Vec<AttachmentMeta>>, pub cells: Vec<Cell>, pub columns: Vec<Column>, pub conditional_format: Option<String>, pub created_at: String, pub created_by: Option<User>, pub discussions: Option<Vec<Discussion>>, pub expanded: Option<bool>, pub filtered_out: Option<bool>, pub format: Option<String>, pub in_critical_path: Option<bool>, pub locked: Option<bool>, pub locked_for_user: Option<bool>, pub modified_at: String, pub modified_by: Option<User>, pub permalink: Option<String>, pub row_number: u64, pub version: Option<u64>, pub sibling_id: Option<u64>, pub parent_id: Option<u64>, pub to_top: Option<bool>, pub to_bottom: Option<bool>, pub indent: Option<IndentEnabled>, pub outdent: Option<IndentEnabled>,
}

Fields§

§id: u64

Row Id

§sheet_id: Option<u64>

Parent Sheet Id

§access_level: Option<AccessLevel>

Enum: ADMIN, EDITOR, EDITOR_SHARE, OWNER, VIEWER

§attachments: Option<Vec<AttachmentMeta>>

Attachments on row. Only returned if the include query string parameter contains attachments.

§cells: Vec<Cell>

Cells belonging to the row.

§columns: Vec<Column>

Columns of row. Only returned if the include query string parameter contains columns.

§conditional_format: Option<String>

Describes this row’s conditional format. Only returned if the include query string parameter contains format and this row has a conditional format applied.

§created_at: String

string or number

§created_by: Option<User>

User object containing name and email of the creator of this row.

§discussions: Option<Vec<Discussion>>

Discussions on the row. Only returned if the include query string parameter contains discussions.

§expanded: Option<bool>

Indicates whether the row is expanded or collapsed.

§filtered_out: Option<bool>

Indicates if the row is filtered out by a column filter. Only returned if the include query string parameter contains filters.

§format: Option<String>

Format descriptor. Only returned if the include query string parameter contains format and this row has a non-default format applied.

§in_critical_path: Option<bool>

Only returned, with a value of true, if the sheet is a project sheet with dependencies enabled and this row is in the critical path.

§locked: Option<bool>

Indicates whether the row is locked.

§locked_for_user: Option<bool>

Indicates whether the row is locked for the requesting user.

§modified_at: String

string or number

§modified_by: Option<User>

User object containing name and email of the last person to modify this row.

§permalink: Option<String>

URL that represents a direct link to the row in Smartsheet. Only returned if the include query string parameter contains rowPermalink.

§row_number: u64

Row number within the sheet.

§version: Option<u64>

Sheet version number that is incremented every time a sheet is modified.

§sibling_id: Option<u64>

§Note

The following are used in the Row Location specified attributes.

Sibling Row Id

Also used to specify row location when adding/updating rows.

§parent_id: Option<u64>

Parent Id, used to specify row location when adding/updating rows.

§to_top: Option<bool>

Row Location Specifier: Top of a sheet

§to_bottom: Option<bool>

Row Location Specifier: Bottom of a sheet

§indent: Option<IndentEnabled>

Row Location Specifier: Indent one existing row, must have a value of “1”

§outdent: Option<IndentEnabled>

Row Location Specifier: Outdent one existing row, must have a value of “1”

Implementations§

Source§

impl Row

Source

pub fn with_cells<C: Into<Vec<Cell>>>(cells: C) -> Self

Source

pub fn with_id_and_cells<C: Into<Vec<Cell>>>(row_id: u64, cells: C) -> Self

Source

pub fn with_id_and_cells_slice<const N: usize>( row_id: u64, cells: &[Cell; N], ) -> Self

Source

pub fn get_cell_by_id( &self, column_id: u64, ) -> Result<&Cell, Box<dyn Error + Send + Sync>>

Retrieve a specified Cell - for a given column id - from the Row

Source

pub fn id(self, id: u64) -> Self

Fluent setter for the id attribute (Row Id)

Source

pub fn expanded<B: Into<Option<bool>>>(self, expanded: B) -> Self

Fluent setter for the expanded attribute

Source

pub fn format<S: Into<String>>(self, format: S) -> Self

Fluent setter for the format attribute

Source

pub fn locked<B: Into<Option<bool>>>(self, locked: B) -> Self

Fluent setter for the locked attribute

Source

pub fn sibling_id<U: Into<Option<u64>>>(self, sibling_id: U) -> Self

Fluent setter for the sibling_id attribute

Source

pub fn parent_id<U: Into<Option<u64>>>(self, parent_id: U) -> Self

Fluent setter for the parent_id attribute

Source

pub fn to_top<B: Into<Option<bool>>>(self, to_top: B) -> Self

Fluent setter for the to_top attribute

Source

pub fn to_bottom<B: Into<Option<bool>>>(self, to_bottom: B) -> Self

Fluent setter for the to_bottom attribute

Source

pub fn indent<I: Into<Option<IndentEnabled>>>(self, indent: I) -> Self

Fluent setter for the indent attribute

Source

pub fn outdent<I: Into<Option<IndentEnabled>>>(self, outdent: I) -> Self

Fluent setter for the outdent attribute

Trait Implementations§

Source§

impl Clone for Row

Source§

fn clone(&self) -> Row

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Row

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Row

Source§

fn default() -> Row

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Row

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<const N: usize> From<&[Cell; N]> for Row

Source§

fn from(cells: &[Cell; N]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Row> for ColumnMapper<'a>

Source§

fn from(row_ref: &'a Row) -> Self

Converts to this type from the input type.
Source§

impl From<Row> for Vec<Row>

Source§

fn from(row: Row) -> Self

Useful when adding / updating row(s) to a sheet.

Source§

impl From<Vec<Cell>> for Row

Source§

fn from(cells: Vec<Cell>) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Row

Source§

fn eq(&self, other: &Row) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Row

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Row

Auto Trait Implementations§

§

impl Freeze for Row

§

impl RefUnwindSafe for Row

§

impl Send for Row

§

impl Sync for Row

§

impl Unpin for Row

§

impl UnwindSafe for Row

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,