pub struct UpdateEntityBuilder<'a> { /* private fields */ }Expand description
Builder for UpdateEntity operations.
Implementations§
Source§impl<'a> UpdateEntityBuilder<'a>
impl<'a> UpdateEntityBuilder<'a>
Sourcepub fn set_text(
self,
property: Id,
value: impl Into<Cow<'a, str>>,
language: Option<Id>,
) -> Self
pub fn set_text( self, property: Id, value: impl Into<Cow<'a, str>>, language: Option<Id>, ) -> Self
Sets a TEXT value.
Sourcepub fn set_int64(self, property: Id, value: i64, unit: Option<Id>) -> Self
pub fn set_int64(self, property: Id, value: i64, unit: Option<Id>) -> Self
Sets an INT64 value.
Sourcepub fn set_float64(self, property: Id, value: f64, unit: Option<Id>) -> Self
pub fn set_float64(self, property: Id, value: f64, unit: Option<Id>) -> Self
Sets a FLOAT64 value.
Sourcepub fn set_point(
self,
property: Id,
lon: f64,
lat: f64,
alt: Option<f64>,
) -> Self
pub fn set_point( self, property: Id, lon: f64, lat: f64, alt: Option<f64>, ) -> Self
Sets a POINT value.
Sourcepub fn set_date(self, property: Id, value: impl Into<Cow<'a, str>>) -> Self
pub fn set_date(self, property: Id, value: impl Into<Cow<'a, str>>) -> Self
Sets a DATE value (ISO 8601 date string).
Sourcepub fn set_time(self, property: Id, value: impl Into<Cow<'a, str>>) -> Self
pub fn set_time(self, property: Id, value: impl Into<Cow<'a, str>>) -> Self
Sets a TIME value (ISO 8601 time string with timezone).
Sourcepub fn set_datetime(self, property: Id, value: impl Into<Cow<'a, str>>) -> Self
pub fn set_datetime(self, property: Id, value: impl Into<Cow<'a, str>>) -> Self
Sets a DATETIME value (ISO 8601 datetime string).
Sourcepub fn set_schedule(self, property: Id, value: impl Into<Cow<'a, str>>) -> Self
pub fn set_schedule(self, property: Id, value: impl Into<Cow<'a, str>>) -> Self
Sets a SCHEDULE value.
Sourcepub fn set_bytes(self, property: Id, value: impl Into<Cow<'a, [u8]>>) -> Self
pub fn set_bytes(self, property: Id, value: impl Into<Cow<'a, [u8]>>) -> Self
Sets a BYTES value.
Sourcepub fn set_decimal(
self,
property: Id,
exponent: i32,
mantissa: DecimalMantissa<'a>,
unit: Option<Id>,
) -> Self
pub fn set_decimal( self, property: Id, exponent: i32, mantissa: DecimalMantissa<'a>, unit: Option<Id>, ) -> Self
Sets a DECIMAL value.
Sourcepub fn set_embedding(
self,
property: Id,
sub_type: EmbeddingSubType,
dims: usize,
data: impl Into<Cow<'a, [u8]>>,
) -> Self
pub fn set_embedding( self, property: Id, sub_type: EmbeddingSubType, dims: usize, data: impl Into<Cow<'a, [u8]>>, ) -> Self
Sets an EMBEDDING value.
Sourcepub fn unset(self, property: Id, language: UnsetLanguage) -> Self
pub fn unset(self, property: Id, language: UnsetLanguage) -> Self
Unsets a specific property+language combination.
Sourcepub fn unset_english(self, property: Id) -> Self
pub fn unset_english(self, property: Id) -> Self
Unsets the English value for a property.
Sourcepub fn unset_language(self, property: Id, language: Id) -> Self
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>
impl<'a> Clone for UpdateEntityBuilder<'a>
Source§fn clone(&self) -> UpdateEntityBuilder<'a>
fn clone(&self) -> UpdateEntityBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for UpdateEntityBuilder<'a>
impl<'a> RefUnwindSafe for UpdateEntityBuilder<'a>
impl<'a> Send for UpdateEntityBuilder<'a>
impl<'a> Sync for UpdateEntityBuilder<'a>
impl<'a> Unpin for UpdateEntityBuilder<'a>
impl<'a> UnwindSafe for UpdateEntityBuilder<'a>
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