pub struct UpstreamPolicy {
pub id: Option<String>,
pub priority: Option<i32>,
pub repository: Option<String>,
}Expand description
Artifact policy configuration for the repository contents.
This type is not used in any activity, and only used as part of another schema.
Fields§
§id: Option<String>The user-provided ID of the upstream policy.
priority: Option<i32>Entries with a greater priority value take precedence in the pull order.
repository: Option<String>A reference to the repository resource, for example: projects/p1/locations/us-central1/repositories/repo1.
Trait Implementations§
Source§impl Clone for UpstreamPolicy
impl Clone for UpstreamPolicy
Source§fn clone(&self) -> UpstreamPolicy
fn clone(&self) -> UpstreamPolicy
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 moreSource§impl Debug for UpstreamPolicy
impl Debug for UpstreamPolicy
Source§impl Default for UpstreamPolicy
impl Default for UpstreamPolicy
Source§fn default() -> UpstreamPolicy
fn default() -> UpstreamPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpstreamPolicy
impl<'de> Deserialize<'de> for UpstreamPolicy
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
Source§impl Serialize for UpstreamPolicy
impl Serialize for UpstreamPolicy
impl Part for UpstreamPolicy
Auto Trait Implementations§
impl Freeze for UpstreamPolicy
impl RefUnwindSafe for UpstreamPolicy
impl Send for UpstreamPolicy
impl Sync for UpstreamPolicy
impl Unpin for UpstreamPolicy
impl UnwindSafe for UpstreamPolicy
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