Struct ya_agreement_utils::agreement::AgreementView
source · [−]Fields
json: Value
agreement_id: String
Implementations
sourceimpl AgreementView
impl AgreementView
pub fn pointer(&self, pointer: &str) -> Option<&Value>
pub fn pointer_mut(&mut self, pointer: &str) -> Option<&mut Value>
pub fn pointer_typed<'a, T: Deserialize<'a>>(
&self,
pointer: &str
) -> Result<T, Error>
pub fn properties<'a, T: Deserialize<'a>>(
&self,
pointer: &str
) -> Result<HashMap<String, T>, Error>
pub fn remove_property(&mut self, pointer: &str) -> Result<(), Error>
Trait Implementations
sourceimpl Clone for AgreementView
impl Clone for AgreementView
sourcefn clone(&self) -> AgreementView
fn clone(&self) -> AgreementView
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AgreementView
impl Debug for AgreementView
sourceimpl<'de> Deserialize<'de> for AgreementView
impl<'de> Deserialize<'de> for AgreementView
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> Display for AgreementView
impl<'a> Display for AgreementView
sourceimpl Serialize for AgreementView
impl Serialize for AgreementView
sourceimpl TryFrom<&'_ Agreement> for AgreementView
impl TryFrom<&'_ Agreement> for AgreementView
sourceimpl TryFrom<&'_ PathBuf> for AgreementView
impl TryFrom<&'_ PathBuf> for AgreementView
Auto Trait Implementations
impl RefUnwindSafe for AgreementView
impl Send for AgreementView
impl Sync for AgreementView
impl Unpin for AgreementView
impl UnwindSafe for AgreementView
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more