pub struct ItemRef {
pub repo: Option<String>,
pub id: String,
}Expand description
Addresses one item inside a connection: which repository it lives in, plus the provider-native id.
repo is always connection-relative (acme/pay) — never host-qualified. It is None
only when the caller genuinely has no repository to give; a provider whose scope holds a
single repository resolves that case, and one with a wider scope rejects it rather than
guessing.
Fields§
§repo: Option<String>§id: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemRef
impl<'de> Deserialize<'de> for ItemRef
Source§fn 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
impl Eq for ItemRef
impl StructuralPartialEq for ItemRef
Auto Trait Implementations§
impl Freeze for ItemRef
impl RefUnwindSafe for ItemRef
impl Send for ItemRef
impl Sync for ItemRef
impl Unpin for ItemRef
impl UnsafeUnpin for ItemRef
impl UnwindSafe for ItemRef
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