pub struct Location { /* private fields */ }Expand description
Native representation of a Location
A Location represents an arbitrary list of properties. The properties defined in the
Location are determined by the Location’s namespace.
Implementations§
Source§impl Location
impl Location
pub fn location_id(&self) -> &str
pub fn namespace(&self) -> &LocationNamespace
pub fn owner(&self) -> &str
pub fn properties(&self) -> &[PropertyValue]
pub fn into_builder(self) -> LocationBuilder
Trait Implementations§
Source§impl FromNative<Location> for Location
impl FromNative<Location> for Location
fn from_native(location: Location) -> Result<Self, ProtoConversionError>
Source§impl FromProto<Location> for Location
impl FromProto<Location> for Location
fn from_proto(location: Location) -> Result<Self, ProtoConversionError>
Source§impl IntoBytes for Location
impl IntoBytes for Location
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
Source§impl IntoNative<Location> for Location
impl IntoNative<Location> for Location
fn into_native(self) -> Result<T, ProtoConversionError>
Source§impl IntoProto<Location> for Location
impl IntoProto<Location> for Location
fn into_proto(self) -> Result<T, ProtoConversionError>
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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