#[non_exhaustive]pub struct FrameworkReference {
pub framework: String,
pub major_revision_id: Option<i64>,
/* private fields */
}Expand description
The reference of a framework, in the format
organizations/{organization}/locations/{location}/frameworks/{framework}.
The only supported location is global.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.framework: StringRequired. The major version of the framework. If not specified, the version corresponds to the latest version of the framework.
major_revision_id: Option<i64>Optional. The major version of the framework. If not specified, the version corresponds to the latest version of the framework.
Implementations§
Source§impl FrameworkReference
impl FrameworkReference
pub fn new() -> Self
Sourcepub fn set_framework<T: Into<String>>(self, v: T) -> Self
pub fn set_framework<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_major_revision_id<T>(self, v: T) -> Self
pub fn set_major_revision_id<T>(self, v: T) -> Self
Sets the value of major_revision_id.
§Example
ⓘ
let x = FrameworkReference::new().set_major_revision_id(42);Sourcepub fn set_or_clear_major_revision_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_major_revision_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of major_revision_id.
§Example
ⓘ
let x = FrameworkReference::new().set_or_clear_major_revision_id(Some(42));
let x = FrameworkReference::new().set_or_clear_major_revision_id(None::<i32>);Trait Implementations§
Source§impl Clone for FrameworkReference
impl Clone for FrameworkReference
Source§fn clone(&self) -> FrameworkReference
fn clone(&self) -> FrameworkReference
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 FrameworkReference
impl Debug for FrameworkReference
Source§impl Default for FrameworkReference
impl Default for FrameworkReference
Source§fn default() -> FrameworkReference
fn default() -> FrameworkReference
Returns the “default value” for a type. Read more
Source§impl Message for FrameworkReference
impl Message for FrameworkReference
Source§impl PartialEq for FrameworkReference
impl PartialEq for FrameworkReference
impl StructuralPartialEq for FrameworkReference
Auto Trait Implementations§
impl Freeze for FrameworkReference
impl RefUnwindSafe for FrameworkReference
impl Send for FrameworkReference
impl Sync for FrameworkReference
impl Unpin for FrameworkReference
impl UnwindSafe for FrameworkReference
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