UpdateEntityBuilder

Struct UpdateEntityBuilder 

Source
pub struct UpdateEntityBuilder<'a> { /* private fields */ }
Expand description

Builder for UpdateEntity operations.

Implementations§

Source§

impl<'a> UpdateEntityBuilder<'a>

Source

pub fn new(id: Id) -> Self

Creates a new UpdateEntityBuilder for the given entity ID.

Source

pub fn set(self, property: Id, value: Value<'a>) -> Self

Sets a property value.

Source

pub fn set_text( self, property: Id, value: impl Into<Cow<'a, str>>, language: Option<Id>, ) -> Self

Sets a TEXT value.

Source

pub fn set_int64(self, property: Id, value: i64, unit: Option<Id>) -> Self

Sets an INT64 value.

Source

pub fn set_float64(self, property: Id, value: f64, unit: Option<Id>) -> Self

Sets a FLOAT64 value.

Source

pub fn set_bool(self, property: Id, value: bool) -> Self

Sets a BOOL value.

Source

pub fn set_point( self, property: Id, lon: f64, lat: f64, alt: Option<f64>, ) -> Self

Sets a POINT value.

Source

pub fn set_date(self, property: Id, days: i32, offset_min: i16) -> Self

Sets a DATE value.

§Arguments
  • days - Signed days since Unix epoch (1970-01-01)
  • offset_min - Signed UTC offset in minutes (e.g., +330 for +05:30)
Source

pub fn set_time(self, property: Id, time_us: i64, offset_min: i16) -> Self

Sets a TIME value.

§Arguments
  • time_us - Microseconds since midnight (0 to 86,399,999,999)
  • offset_min - Signed UTC offset in minutes (e.g., +330 for +05:30)
Source

pub fn set_datetime(self, property: Id, epoch_us: i64, offset_min: i16) -> Self

Sets a DATETIME value.

§Arguments
  • epoch_us - Microseconds since Unix epoch (1970-01-01T00:00:00Z)
  • offset_min - Signed UTC offset in minutes (e.g., +330 for +05:30)
Source

pub fn set_schedule(self, property: Id, value: impl Into<Cow<'a, str>>) -> Self

Sets a SCHEDULE value.

Source

pub fn set_bytes(self, property: Id, value: impl Into<Cow<'a, [u8]>>) -> Self

Sets a BYTES value.

Source

pub fn set_decimal( self, property: Id, exponent: i32, mantissa: DecimalMantissa<'a>, unit: Option<Id>, ) -> Self

Sets a DECIMAL value.

Source

pub fn set_embedding( self, property: Id, sub_type: EmbeddingSubType, dims: usize, data: impl Into<Cow<'a, [u8]>>, ) -> Self

Sets an EMBEDDING value.

Source

pub fn unset(self, property: Id, language: UnsetLanguage) -> Self

Unsets a specific property+language combination.

Source

pub fn unset_all(self, property: Id) -> Self

Unsets all values for a property (all languages).

Source

pub fn unset_english(self, property: Id) -> Self

Unsets the English value for a property.

Source

pub fn unset_language(self, property: Id, language: Id) -> Self

Unsets a specific language for a property.

Trait Implementations§

Source§

impl<'a> Clone for UpdateEntityBuilder<'a>

Source§

fn clone(&self) -> UpdateEntityBuilder<'a>

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

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

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for UpdateEntityBuilder<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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, 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> Same for T

Source§

type Output = T

Should always be Self
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.